moonraker: always log configuration exceptions

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-04-06 07:57:06 -04:00
parent bf19bcecae
commit 77027d252e
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 1 additions and 1 deletions

View File

@ -448,8 +448,8 @@ def main(cmd_line_args: argparse.Namespace) -> None:
server.load_components() server.load_components()
except confighelper.ConfigError as e: except confighelper.ConfigError as e:
backup_cfg = confighelper.find_config_backup(cfg_file) backup_cfg = confighelper.find_config_backup(cfg_file)
logging.exception("Server Config Error")
if alt_config_loaded or backup_cfg is None: if alt_config_loaded or backup_cfg is None:
logging.exception("Server Config Error")
estatus = 1 estatus = 1
break break
app_args['config_file'] = backup_cfg app_args['config_file'] = backup_cfg