From f778741083ad868d0e2bcd028c321609a9f800e2 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 12 Apr 2014 03:09:47 -0700 Subject: [PATCH] Forgot to add initalizer to nzbToMedia.py Removed the leftover logger settings from our config spec file --- autoProcessMedia.cfg.spec | 27 +-------------------------- nzbToMedia.py | 6 ++---- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/autoProcessMedia.cfg.spec b/autoProcessMedia.cfg.spec index 0a046229..978eabcc 100644 --- a/autoProcessMedia.cfg.spec +++ b/autoProcessMedia.cfg.spec @@ -202,29 +202,4 @@ [passwords] # enter the full path to a text file containing passwords to be used for extraction attempts. # In the passwords file, every password should be on a new line - PassWordFile = - -# Logging configuration -[loggers] - keys = root - -[handlers] - keys = console - -[formatters] - keys = generic - -[logger_root] - level = NOTSET - handlers = console - qualname = - -[handler_console] - class = StreamHandler - args = (sys.stdout,) - level = INFO - formatter = generic - -[formatter_generic] - format = %(asctime)s|%(levelname)-7.7s %(message)s - datefmt = %H:%M:%S \ No newline at end of file + PassWordFile = \ No newline at end of file diff --git a/nzbToMedia.py b/nzbToMedia.py index 0ef2994b..75369730 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -333,10 +333,8 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id= return -1 ######################################################################################################################## -logger.postprocess("====================") # Seperate old from new log -logger.postprocess("nzbToMedia %s", nzbtomedia.NZBTOMEDIA_VERSION) - -logger.postprocess("Loading config from %s", nzbtomedia.CONFIG_FILE) +# Initialize the config +nzbtomedia.initialize() # Post-Processing Result result = 0