]> git.openstreetmap.org Git - nominatim.git/commitdiff
reenable logging of details calls
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 6 Sep 2023 09:35:53 +0000 (11:35 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 6 Sep 2023 09:35:53 +0000 (11:35 +0200)
nominatim/server/falcon/server.py
nominatim/server/starlette/server.py

index b1859db6835f5554db83da17840b24b342557f65..5ec418a6f3b4aa5ad4c1f287506cb843b3b03504 100644 (file)
@@ -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)
index 19a9943c9ecce33d8184bcabe1a572bb1fe1e1b7..33ab22c7bcee7c2b1994ab56496acec886f38d30 100644 (file)
@@ -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