From 2dfdc69487f9bfa3c5f3b14b7cc97193f6c3956a Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 26 Aug 2020 20:27:38 +1200 Subject: [PATCH] log error when migrating #850 (#1768) Can't display debug logging until the config is loaded to enable debugging! So log as error to get details of the migration fault. --- core/configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/configuration.py b/core/configuration.py index 134c05d5..0a6f0d4b 100644 --- a/core/configuration.py +++ b/core/configuration.py @@ -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: