Use CRITICAL level for start-up failures
This commit is contained in:
parent
9b029ac084
commit
9d72341df2
@ -98,7 +98,7 @@ def run():
|
|||||||
configuration = config.load(config_paths,
|
configuration = config.load(config_paths,
|
||||||
ignore_missing_paths=ignore_missing_paths)
|
ignore_missing_paths=ignore_missing_paths)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error("Invalid configuration: %s", e, exc_info=True)
|
logger.fatal("Invalid configuration: %s", e, exc_info=True)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# Update Radicale configuration according to arguments
|
# Update Radicale configuration according to arguments
|
||||||
@ -118,10 +118,10 @@ def run():
|
|||||||
Collection = storage.load(configuration)
|
Collection = storage.load(configuration)
|
||||||
with Collection.acquire_lock("r"):
|
with Collection.acquire_lock("r"):
|
||||||
if not Collection.verify():
|
if not Collection.verify():
|
||||||
logger.error("Storage verifcation failed")
|
logger.fatal("Storage verifcation failed")
|
||||||
exit(1)
|
exit(1)
|
||||||
except Exception as e:
|
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)
|
"%s", e, exc_info=True)
|
||||||
exit(1)
|
exit(1)
|
||||||
return
|
return
|
||||||
@ -138,7 +138,7 @@ def run():
|
|||||||
try:
|
try:
|
||||||
server.serve(configuration, shutdown_socket_out)
|
server.serve(configuration, shutdown_socket_out)
|
||||||
except Exception as e:
|
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)
|
exc_info=True)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user