diff options
| author | 2023-02-03 16:51:59 +0100 | |
|---|---|---|
| committer | 2023-02-03 16:51:59 +0100 | |
| commit | d49089898f077796eea5fb75c3674c57db399cc1 (patch) | |
| tree | 212f5c858317e62a28e8fc94302fa495207bf6a0 | |
| parent | Email notifications have been moved to the global queue. (diff) | |
| download | snac2-d49089898f077796eea5fb75c3674c57db399cc1.tar.gz snac2-d49089898f077796eea5fb75c3674c57db399cc1.tar.xz snac2-d49089898f077796eea5fb75c3674c57db399cc1.zip | |
Elevated debug level to bad user / invalid user messages.
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | data.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 9c9ea7c..4f0e246 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1235,7 +1235,7 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 1235 | uid = xs_list_get(l, 1); | 1235 | uid = xs_list_get(l, 1); |
| 1236 | if (!user_open(&snac, uid)) { | 1236 | if (!user_open(&snac, uid)) { |
| 1237 | /* invalid user */ | 1237 | /* invalid user */ |
| 1238 | srv_log(xs_fmt("activitypub_get_handler bad user %s", uid)); | 1238 | srv_debug(1, xs_fmt("activitypub_get_handler bad user %s", uid)); |
| 1239 | return 404; | 1239 | return 404; |
| 1240 | } | 1240 | } |
| 1241 | 1241 | ||
| @@ -155,6 +155,9 @@ int user_open(snac *snac, const char *uid) | |||
| 155 | if ((f = fopen(cfg_file, "r")) != NULL) { | 155 | if ((f = fopen(cfg_file, "r")) != NULL) { |
| 156 | xs *cfg_data; | 156 | xs *cfg_data; |
| 157 | 157 | ||
| 158 | // if (fileno(f) > 100) | ||
| 159 | // snac_log(snac, xs_fmt("CAUTION: fileno() > 100")); | ||
| 160 | |||
| 158 | /* read full config file */ | 161 | /* read full config file */ |
| 159 | cfg_data = xs_readall(f); | 162 | cfg_data = xs_readall(f); |
| 160 | fclose(f); | 163 | fclose(f); |
| @@ -186,7 +189,7 @@ int user_open(snac *snac, const char *uid) | |||
| 186 | srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); | 189 | srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); |
| 187 | } | 190 | } |
| 188 | else | 191 | else |
| 189 | srv_log(xs_fmt("invalid user '%s'", uid)); | 192 | srv_debug(1, xs_fmt("invalid user '%s'", uid)); |
| 190 | 193 | ||
| 191 | if (!ret) | 194 | if (!ret) |
| 192 | user_free(snac); | 195 | user_free(snac); |