mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Can't display debug logging until the config is loaded to enable debugging! So log as error to get details of the migration fault.
This commit is contained in:
parent
f10fa03159
commit
2dfdc69487
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
|||
shutil.copyfile(core.CONFIG_SPEC_FILE, core.CONFIG_FILE)
|
||||
CFG_OLD = config(core.CONFIG_FILE)
|
||||
except Exception as error:
|
||||
logger.debug('Error {msg} when copying to .cfg'.format(msg=error))
|
||||
logger.error('Error {msg} when copying to .cfg'.format(msg=error))
|
||||
|
||||
try:
|
||||
# check for autoProcessMedia.cfg.spec and create if it does not exist
|
||||
|
@ -135,7 +135,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
|||
shutil.copyfile(core.CONFIG_FILE, core.CONFIG_SPEC_FILE)
|
||||
CFG_NEW = config(core.CONFIG_SPEC_FILE)
|
||||
except Exception as error:
|
||||
logger.debug('Error {msg} when copying to .spec'.format(msg=error))
|
||||
logger.error('Error {msg} when copying to .spec'.format(msg=error))
|
||||
|
||||
# check for autoProcessMedia.cfg and autoProcessMedia.cfg.spec and if they don't exist return and fail
|
||||
if CFG_NEW is None or CFG_OLD is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue