bugfix freezer.log

This commit is contained in:
2021-10-18 10:39:53 +02:00
parent 019d7f0a2c
commit 57d65aee58
+1 -1
View File
@@ -17,7 +17,7 @@ cherrypy.config.update({
logger = logging.getLogger('Rotating Log')
logger.setLevel(logging.INFO)
logHandler = handlers.RotatingFileHandler('freezer.log', maxBytes=1000000, backupCount=2)
logHandler = handlers.RotatingFileHandler('/home/pi/freezer.log', maxBytes=1000000, backupCount=2)
logHandler.setLevel(logging.INFO)
logHandler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s - %(message)s', '%Y-%m-%d %H:%M:%S'))
logger.addHandler(logHandler)