Sfoglia il codice sorgente

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.
grunfink 4 mesi fa
parent
commit
8f91da7c2f
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      data.c
  2. 1 1
      html.c

+ 1 - 1
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);

+ 1 - 1
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;
     }