# HG changeset patch # User June Park # Date 1767466018 28800 # Node ID daf2d393741aaf22cfe94b1aacb8fad817943cea # Parent 4de2fb74ce82c1494ff4c1a849060f750138f3e9 Debugging in server. diff -r 4de2fb74ce82 -r daf2d393741a hg-web/main.c --- 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) {