changeset 106:daf2d393741a

Debugging in server.
author June Park <parkjune1995@gmail.com>
date Sat, 03 Jan 2026 10:46:58 -0800
parents 4de2fb74ce82
children 1423044e3d58
files hg-web/main.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hg-web/main.c	Sat Jan 03 10:28:54 2026 -0800
+++ b/hg-web/main.c	Sat Jan 03 10:46:58 2026 -0800
@@ -98,6 +98,12 @@
   url_decode(decoded_path, rel_path);
 
   char *safe_path = sanitize_path(decoded_path, arena);
+
+  Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path);
+  Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path);
+  Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path);
+  fflush(stdout);
+
   char full_path[MAX_PATH];
   if (strlen(safe_path) > 0)
     snprintf(full_path, sizeof(full_path), "%s/%s", REPO_ROOT, safe_path);
@@ -180,10 +186,10 @@
   url_decode(decoded_path, rel_path);
   char *safe_path = sanitize_path(decoded_path, arena);
 
-  Seobeo_Log(SEOBEO_DEBUG, "rel_path: %s\n", rel_path);
-  Seobeo_Log(SEOBEO_DEBUG, "decoded_path: %s\n", decoded_path);
-  Seobeo_Log(SEOBEO_DEBUG, "safe path: %s\n", safe_path);
-
+  Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path);
+  Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path);
+  Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path);
+  fflush(stdout);
 
   if (strlen(safe_path) == 0)
   {