use debug loglevel for login/logout messages
This commit is contained in:
parent
f8a3676555
commit
8de390b6f9
@ -63,7 +63,7 @@ async def user_login(address: cptypes.IPAddress, mac: cptypes.MacAddress) -> Non
|
|||||||
quart.abort(500, str(e))
|
quart.abort(500, str(e))
|
||||||
|
|
||||||
if pu.macs:
|
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():
|
for msg in pu.serialize():
|
||||||
await app.my_hub.broadcast(msg)
|
await app.my_hub.broadcast(msg)
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ async def user_logout(mac: cptypes.MacAddress) -> None:
|
|||||||
except capport.database.NotReadyYet as e:
|
except capport.database.NotReadyYet as e:
|
||||||
quart.abort(500, str(e))
|
quart.abort(500, str(e))
|
||||||
if pu.macs:
|
if pu.macs:
|
||||||
_logger.info(f'User {mac} logged out')
|
_logger.debug(f'User {mac} logged out')
|
||||||
for msg in pu.serialize():
|
for msg in pu.serialize():
|
||||||
await app.my_hub.broadcast(msg)
|
await app.my_hub.broadcast(msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user