mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
Fixed few misc things related to new logging code and webapi
This commit is contained in:
parent
949c56439c
commit
3214f879ac
@ -54,7 +54,11 @@ class CensorFilter(logging.Filter):
|
|||||||
record.msg = record.msg.replace(v, len(v) * '*')
|
record.msg = record.msg.replace(v, len(v) * '*')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def initLogging(logFile=os.path.join(sickbeard.LOG_DIR, 'sickrage.log'), consoleLogging=False, fileLogging=False, debug=False):
|
def initLogging(logFile=None, consoleLogging=False, fileLogging=False, debug=False):
|
||||||
|
# set logging filename
|
||||||
|
if not logFile:
|
||||||
|
logFile = os.path.join(sickbeard.LOG_DIR, 'sickrage.log')
|
||||||
|
|
||||||
# Add a new logging level DB
|
# Add a new logging level DB
|
||||||
logging.addLevelName(DB, 'DB')
|
logging.addLevelName(DB, 'DB')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user