Properly enable serial logging on startup if configured
(cherry picked from commit 2261ddf)
This commit is contained in:
1 parent
f622e1e181
commit
38c4738909
1 file changed
+5
@@ -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()
|
||||
Reference in new issue
Block a user