Add more logging in case wrong config param

pull/4/head
Guillermo Rodriguez 2023-01-18 07:44:46 -03:00
parent 15c49ca9a0
commit edc4924ef8
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ async def open_rpc_service(sock, dgpu_bus, db_pool, tls_whitelist, tls_key):
conn, user, req.params['attr'], req.params['val'])
logging.info('done')
else:
logging.warning(f'{req.params["attr"]} not in {CONFIG_ATTRS}')
case 'stats':
logging.info('stats')
generated, joined, role = await get_user_stats(conn, user)