mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Fix log config reading.
This commit is contained in:
parent
f0846fe480
commit
a11619b03c
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
import logging
|
||||
import logging.config
|
||||
import os.path
|
||||
|
@ -6,7 +5,7 @@ import os.path
|
|||
|
||||
def nzbtomedia_configure_logging(dirname):
|
||||
logFile = os.path.join(dirname, "postprocess.log")
|
||||
logging.config.fileConfig(os.path.join(dirname, "logger.conf"))
|
||||
logging.config.fileConfig(os.path.join(dirname, "autoProcessMedia.cfg"))
|
||||
fileHandler = logging.FileHandler(logFile, encoding='utf-8', delay=True)
|
||||
fileHandler.formatter = logging.Formatter('%(asctime)s|%(levelname)-7.7s %(message)s', '%H:%M:%S')
|
||||
fileHandler.level = logging.DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue