Skip to content

Commit 5b2b3a5

Browse files
author
Alan Christie
committed
build: Logging levels adjustments, log tweaks & new lock
1 parent 217f721 commit 5b2b3a5

File tree

3 files changed

+653
-630
lines changed

3 files changed

+653
-630
lines changed

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async def event_stream(websocket: WebSocket, uuid: str):
198198
try:
199199
await websocket.send_text(message_body)
200200
except WebSocketDisconnect:
201-
_LOGGER.warning(
201+
_LOGGER.info(
202202
"Got WebSocketDisconnect for %s (%s) (leaving)...", es_id, uuid
203203
)
204204
_connected = False

logging.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
"loggers": {
4242
"app": {
4343
"handlers": ["console", "file"],
44-
"level": "DEBUG",
44+
"level": "INFO",
4545
"propagate": "true"
4646
},
4747
"uvicorn": {
4848
"handlers": ["console", "file"],
49-
"level": "DEBUG",
49+
"level": "WARNING",
5050
"propagate": "false"
5151
},
5252
"uvicorn.error": {
@@ -61,7 +61,7 @@
6161
},
6262
"uvicorn.asgi": {
6363
"handlers": ["access_log"],
64-
"level": "DEBUG",
64+
"level": "WARNING",
6565
"propagate": "false"
6666
}
6767
}

0 commit comments

Comments
 (0)