mirror of
https://github.com/evilhero/mylar
synced 2024-12-26 17:46:52 +00:00
fix: logger error issues (search.log)
This commit is contained in:
parent
05dd676cc9
commit
2b0c8cfffb
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
@ -94,3 +95,6 @@ def warn(message):
|
|||
def error(message):
|
||||
mylar_log.log(message, level='ERROR')
|
||||
|
||||
def fdebug(message):
|
||||
search_log.log(message, level='DEBUG')
|
||||
|
||||
|
|
Loading…
Reference in a new issue