From d35f189c410e30c52160d4aea284dabbabdc6417 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 11 Jan 2024 12:28:50 -0500 Subject: [PATCH] add 401 to short exception list --- modules/middleware.py | 2 +- wiki | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/middleware.py b/modules/middleware.py index 4e2a4df55..6bebe0e69 100644 --- a/modules/middleware.py +++ b/modules/middleware.py @@ -73,7 +73,7 @@ def setup_middleware(app: FastAPI, cmd_opts): log.error(f"API error: {req.method}: {req.url} {err}") if not isinstance(e, HTTPException) and err['error'] != 'TypeError': # do not print backtrace on known httpexceptions errors.display(e, 'HTTP API', [anyio, fastapi, uvicorn, starlette]) - elif err['code'] == 404: + elif err['code'] == 404 or err['code'] == 401: pass else: log.debug(e, exc_info=True) # print stack trace diff --git a/wiki b/wiki index a0c7ddbc9..c47ef6e70 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit a0c7ddbc9adc4956e7d559cc4ad2487e9f361f1a +Subproject commit c47ef6e70c60bcf53ba1c16d3ffeaea6401501c0