Skip to content

Commit

Permalink
log level is now set in server.py instead of MQTTControl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sleiner committed Dec 3, 2016
1 parent a875328 commit ad1524b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions server/mqtt/MQTTControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ def set_strip_brightness(brightness: int):
def run(config) -> None:
global conf, show_process, strip

log.getLogger().setLevel(log.DEBUG)

# store config
conf = config

Expand Down
5 changes: 4 additions & 1 deletion server/server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import mqtt.MQTTControl
import config
import logging as log

user_config = config.configuration
# set your log level here
log.getLogger().setLevel(log.DEBUG)

user_config = config.configuration
mqtt.MQTTControl.run(user_config)

0 comments on commit ad1524b

Please sign in to comment.