diff options
| author | 2023-02-03 16:51:59 +0100 | |
|---|---|---|
| committer | 2023-02-03 16:51:59 +0100 | |
| commit | d49089898f077796eea5fb75c3674c57db399cc1 (patch) | |
| tree | 212f5c858317e62a28e8fc94302fa495207bf6a0 /data.c | |
| 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.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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); |