mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Elevated debug level to bad user / invalid user messages.
This commit is contained in:
parent
928f22fbba
commit
d49089898f
2 changed files with 5 additions and 2 deletions
|
@ -1235,7 +1235,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
|
||||||
uid = xs_list_get(l, 1);
|
uid = xs_list_get(l, 1);
|
||||||
if (!user_open(&snac, uid)) {
|
if (!user_open(&snac, uid)) {
|
||||||
/* invalid user */
|
/* invalid user */
|
||||||
srv_log(xs_fmt("activitypub_get_handler bad user %s", uid));
|
srv_debug(1, xs_fmt("activitypub_get_handler bad user %s", uid));
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
5
data.c
5
data.c
|
@ -155,6 +155,9 @@ int user_open(snac *snac, const char *uid)
|
||||||
if ((f = fopen(cfg_file, "r")) != NULL) {
|
if ((f = fopen(cfg_file, "r")) != NULL) {
|
||||||
xs *cfg_data;
|
xs *cfg_data;
|
||||||
|
|
||||||
|
// if (fileno(f) > 100)
|
||||||
|
// snac_log(snac, xs_fmt("CAUTION: fileno() > 100"));
|
||||||
|
|
||||||
/* read full config file */
|
/* read full config file */
|
||||||
cfg_data = xs_readall(f);
|
cfg_data = xs_readall(f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
@ -186,7 +189,7 @@ int user_open(snac *snac, const char *uid)
|
||||||
srv_debug(2, xs_fmt("error opening '%s'", cfg_file));
|
srv_debug(2, xs_fmt("error opening '%s'", cfg_file));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_log(xs_fmt("invalid user '%s'", uid));
|
srv_debug(1, xs_fmt("invalid user '%s'", uid));
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
user_free(snac);
|
user_free(snac);
|
||||||
|
|
Loading…
Reference in a new issue