commit 8f91da7

grunfink  ·  2026-03-26 14:32:28 +0000 UTC
parent dbcb244
Increased some debug level in error users.

These are very annoying in instances that don't have a prefix,
as fuckers are trying PHP and other vulnerabilities non-stop.
2 files changed,  +2, -2
M data.c
M html.c
M data.c
+1, -1
1@@ -316,7 +316,7 @@ int user_open(snac *user, const char *uid)
2         }
3     }
4     else
5-        srv_debug(1, xs_fmt("invalid user '%s'", uid));
6+        srv_debug(2, xs_fmt("invalid user '%s'", uid));
7 
8     if (!ret)
9         user_free(user);
M html.c
+1, -1
1@@ -4586,7 +4586,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2     if (!uid || !user_open(&snac, uid)) {
3         /* invalid user */
4         status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
5-        srv_debug(1, xs_fmt("html_get_handler bad user %s %d", xs_or(uid, "(null)"), status));
6+        srv_debug(2, xs_fmt("html_get_handler bad user '%s' %d", xs_or(uid, "(null)"), status));
7         return status;
8     }
9