From 2b0c8cfffb1fe3d85886b088b8a8eb867d15bb4e Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 17 Dec 2012 17:49:49 -0500 Subject: [PATCH] fix: logger error issues (search.log) --- mylar/logger.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mylar/logger.py b/mylar/logger.py index 36576084..84c837b5 100755 --- a/mylar/logger.py +++ b/mylar/logger.py @@ -81,6 +81,7 @@ class RotatingLogger(object): logger.error(message) mylar_log = RotatingLogger('mylar.log', MAX_SIZE, MAX_FILES) +search_log = RotatingLogger('search.log', MAX_SIZE, MAX_FILES) def debug(message): mylar_log.log(message, level='DEBUG') @@ -93,4 +94,7 @@ def warn(message): def error(message): mylar_log.log(message, level='ERROR') + +def fdebug(message): + search_log.log(message, level='DEBUG')