Properly enable serial logging on startup if configured

(cherry picked from commit 2261ddf)
This commit is contained in:
Gina Häußge committed 2013-08-18 18:45:32 +02:00
1 parent f622e1e181
commit 38c4738909
1 file changed
+5
+5
View File
@@ -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()