aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-03-26 15:32:28 +0100
committergrunfink <grunfink@comam.es>2026-03-26 15:32:28 +0100
commit8f91da7c2fd1c22c77b8bb7ed9c8ff68dab5b097 (patch)
treed9f333a93243f153c0200e669f957b018955405b
parentdbcb2445ea1b1dc562fc49a2aeb57048b0a64baf (diff)
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.
-rw-r--r--data.c2
-rw-r--r--html.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/data.c b/data.c
index e022937..0ff102e 100644
--- a/data.c
+++ b/data.c
@@ -316,7 +316,7 @@ int user_open(snac *user, const char *uid)
}
}
else
- srv_debug(1, xs_fmt("invalid user '%s'", uid));
+ srv_debug(2, xs_fmt("invalid user '%s'", uid));
if (!ret)
user_free(user);
diff --git a/html.c b/html.c
index f07be9c..51d64ed 100644
--- a/html.c
+++ b/html.c
@@ -4586,7 +4586,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
if (!uid || !user_open(&snac, uid)) {
/* invalid user */
status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
- srv_debug(1, xs_fmt("html_get_handler bad user %s %d", xs_or(uid, "(null)"), status));
+ srv_debug(2, xs_fmt("html_get_handler bad user '%s' %d", xs_or(uid, "(null)"), status));
return status;
}