lacre.admin: Report misconfiguration
Also: log more info when the daemon starts.
This commit is contained in:
parent
ccfaa39501
commit
f1c135850c
2 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue