Properly enable serial logging on startup if configured
(cherry picked from commit 2261ddf)
This commit is contained in:
parent
f622e1e181
commit
38c4738909
1 changed files with 5 additions and 0 deletions
|
|
@ -1039,6 +1039,11 @@ class Server():
|
|||
|
||||
logging.config.dictConfig(config)
|
||||
|
||||
if settings().getBoolean(["serial", "log"]):
|
||||
# enable debug logging to serial.log
|
||||
logging.getLogger("SERIAL").setLevel(logging.DEBUG)
|
||||
logging.getLogger("SERIAL").debug("Enabling serial logging")
|
||||
|
||||
if __name__ == "__main__":
|
||||
octoprint = Server()
|
||||
octoprint.run()
|
||||
|
|
|
|||
Loading…
Reference in a new issue