From 8de390b6f9b8c29dcb5f92363bff368482ce49f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 7 Apr 2022 14:54:21 +0200 Subject: [PATCH] use debug loglevel for login/logout messages --- src/capport/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/capport/api/views.py b/src/capport/api/views.py index 1066fb2..c8cef31 100644 --- a/src/capport/api/views.py +++ b/src/capport/api/views.py @@ -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)