Properly enable serial logging on startup if configured
This commit is contained in:
parent
54175d2146
commit
2261ddf41f
1 changed files with 5 additions and 0 deletions
|
|
@ -1054,6 +1054,11 @@ class Server():
|
||||||
|
|
||||||
logging.config.dictConfig(config)
|
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__":
|
if __name__ == "__main__":
|
||||||
octoprint = Server()
|
octoprint = Server()
|
||||||
octoprint.run()
|
octoprint.run()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue