2
0

use debug loglevel for login/logout messages

This commit is contained in:
Stefan Bühler 2022-04-07 14:54:21 +02:00
parent f8a3676555
commit 8de390b6f9

View File

@ -63,7 +63,7 @@ async def user_login(address: cptypes.IPAddress, mac: cptypes.MacAddress) -> Non
quart.abort(500, str(e))
if pu.macs:
_logger.info(f'User {mac} (with IP {address}) logged in')
_logger.debug(f'User {mac} (with IP {address}) logged in')
for msg in pu.serialize():
await app.my_hub.broadcast(msg)
@ -76,7 +76,7 @@ async def user_logout(mac: cptypes.MacAddress) -> None:
except capport.database.NotReadyYet as e:
quart.abort(500, str(e))
if pu.macs:
_logger.info(f'User {mac} logged out')
_logger.debug(f'User {mac} logged out')
for msg in pu.serialize():
await app.my_hub.broadcast(msg)