diff options
Diffstat (limited to 'tic/utils/log.py')
-rw-r--r-- | tic/utils/log.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tic/utils/log.py b/tic/utils/log.py index 084fff6..bfbb728 100644 --- a/tic/utils/log.py +++ b/tic/utils/log.py @@ -31,14 +31,14 @@ def setup(root): formatter.datefmt = '%Y-%m-%d %H:%M:%S' mkdir_p(TIC_LOG_DIR) - fileHandler = logging.handlers.RotatingFileHandler(os.path.join(TIC_LOG_DIR, 'tic-core.log'), maxBytes=LOG_FILE_MAX_BYTES, backupCount=10) - streamHandler = logging.StreamHandler() + filehandler = logging.handlers.RotatingFileHandler(os.path.join(TIC_LOG_DIR, 'tic-core.log'), maxBytes=LOG_FILE_MAX_BYTES, backupCount=10) + streamhandler = logging.StreamHandler() - fileHandler.setFormatter(formatter) - streamHandler.setFormatter(formatter) + filehandler.setFormatter(formatter) + streamhandler.setFormatter(formatter) - logger.addHandler(fileHandler) - logger.addHandler(streamHandler) + logger.addHandler(filehandler) + logger.addHandler(streamhandler) def mkdir_p(path): try: |