add request uri/path debug logging

Fri, 30 May 2025 08:40:58 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 30 May 2025 08:40:58 +0200
changeset 591
d703055a1af7
parent 590
33ca0f9f276f
child 592
2839d5e28c75

add request uri/path debug logging

src/server/daemon/httprequest.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/httprequest.c	Thu May 29 15:18:48 2025 +0200
+++ b/src/server/daemon/httprequest.c	Fri May 30 08:40:58 2025 +0200
@@ -266,6 +266,11 @@
         // TODO: implement global OPTIONS #71
         return 1;
     }
+    log_ereport(
+                LOG_DEBUG,
+                "req uri: {%.*s}",
+                (int)absPath.length,
+                absPath.ptr);
     
     for(int i=0;i<request->uri.length;i++) {
         if(request->uri.ptr[i] == '?') {
@@ -292,6 +297,11 @@
             break;
         }
     }
+    log_ereport(
+                LOG_DEBUG,
+                "req abs path: {%.*s}",
+                (int)absPath.length,
+                absPath.ptr);
     
     // Get abs_path part of request URI, and canonicalize the path
     cxmutstr orig_path = absPath;

mercurial