1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixed few misc things related to new logging code and webapi

This commit is contained in:
echel0n 2014-12-16 02:55:21 -08:00
parent 949c56439c
commit 3214f879ac

View File

@ -54,7 +54,11 @@ class CensorFilter(logging.Filter):
record.msg = record.msg.replace(v, len(v) * '*')
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
logging.addLevelName(DB, 'DB')