1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-26 01:26:50 +00:00

fix: logger error issues (search.log)

This commit is contained in:
evilhero 2012-12-17 17:49:49 -05:00
parent 05dd676cc9
commit 2b0c8cfffb

View file

@ -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')