Skip to content

Commit

Permalink
Remove on_log message and revert to paho-mqtt==1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mer committed May 26, 2024
1 parent a2fa801 commit 13ba35a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions redalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ def on_disconnect(client, userdata, rc):
client.connect(server)


# def on_log(client, userdata, level, buf):
# logger.info(buf)

alerts = [0]

# Setting apprise Job Manager
Expand All @@ -77,7 +74,7 @@ def on_disconnect(client, userdata, rc):
client.username_pw_set(user,passw)
client.on_connect=on_connect
client.on_disconnect=on_disconnect
client.on_log=on_log # set client logging
# client.on_log=on_log # set client logging
client.loop_start()
logger.info("Connecting to broker")
mqtt.Client.connected_flag=False#create flag in class
Expand Down

0 comments on commit 13ba35a

Please sign in to comment.