lacre.admin: Report misconfiguration

Also: log more info when the daemon starts.
This commit is contained in:
Piotr F. Mieszkowski 2024-02-29 21:57:39 +01:00 committed by pfm
parent ccfaa39501
commit f1c135850c
2 changed files with 5 additions and 1 deletions

View File

@ -109,6 +109,7 @@ def main():
missing = conf.validate_config()
if missing:
LOG.error('Missing configuration parameters: %s', missing)
print('Insufficient configuration, aborting.')
sys.exit(lacre.EX_CONFIG)
general_conf = conf.config_source()

View File

@ -124,7 +124,10 @@ async def _main():
keyring.post_init_hook()
LOG.info('Starting the daemon...')
LOG.info('Starting the daemon with GnuPG=%s, socket=%s, database=%s',
keyring_path,
conf.daemon_params(),
conf.get_item('database', 'url'))
controller.start()
await _sleep()