From c55c3657c32e1c11f0aa7811b6720d4a711f9abb Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 6 Sep 2023 11:35:53 +0200 Subject: [PATCH] reenable logging of details calls --- nominatim/server/falcon/server.py | 2 +- nominatim/server/starlette/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nominatim/server/falcon/server.py b/nominatim/server/falcon/server.py index b1859db6..5ec418a6 100644 --- a/nominatim/server/falcon/server.py +++ b/nominatim/server/falcon/server.py @@ -122,7 +122,7 @@ class FileLoggingMiddleware: writes logs for sucessful requests for search, reverse and lookup. """ if not req_succeeded or resource is None or resp.status != 200\ - or resource.name not in ('reverse', 'search', 'lookup'): + or resource.name not in ('reverse', 'search', 'lookup', 'details'): return finish = dt.datetime.now(tz=dt.timezone.utc) diff --git a/nominatim/server/starlette/server.py b/nominatim/server/starlette/server.py index 19a9943c..33ab22c7 100644 --- a/nominatim/server/starlette/server.py +++ b/nominatim/server/starlette/server.py @@ -93,7 +93,7 @@ class FileLoggingMiddleware(BaseHTTPMiddleware): finish = dt.datetime.now(tz=dt.timezone.utc) - for endpoint in ('reverse', 'search', 'lookup'): + for endpoint in ('reverse', 'search', 'lookup', 'details'): if request.url.path.startswith('/' + endpoint): qtype = endpoint break -- 2.39.5