From 9d72341df25596f306edea182929bbad0520a2c3 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 6 Sep 2018 09:12:54 +0200 Subject: [PATCH] Use CRITICAL level for start-up failures --- radicale/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radicale/__main__.py b/radicale/__main__.py index 409b393..2f76f56 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -98,7 +98,7 @@ def run(): configuration = config.load(config_paths, ignore_missing_paths=ignore_missing_paths) except Exception as e: - log.error("Invalid configuration: %s", e, exc_info=True) + logger.fatal("Invalid configuration: %s", e, exc_info=True) exit(1) # Update Radicale configuration according to arguments @@ -118,10 +118,10 @@ def run(): Collection = storage.load(configuration) with Collection.acquire_lock("r"): if not Collection.verify(): - logger.error("Storage verifcation failed") + logger.fatal("Storage verifcation failed") exit(1) except Exception as e: - logger.error("An exception occurred during storage verification: " + logger.fatal("An exception occurred during storage verification: " "%s", e, exc_info=True) exit(1) return @@ -138,7 +138,7 @@ def run(): try: server.serve(configuration, shutdown_socket_out) except Exception as e: - logger.error("An exception occurred during server startup: %s", e, + logger.fatal("An exception occurred during server startup: %s", e, exc_info=True) exit(1)