bugfix freezer.log
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user