summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2023-02-03 16:51:59 +0100
committerGravatar default2023-02-03 16:51:59 +0100
commitd49089898f077796eea5fb75c3674c57db399cc1 (patch)
tree212f5c858317e62a28e8fc94302fa495207bf6a0 /data.c
parentEmail notifications have been moved to the global queue. (diff)
downloadsnac2-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/data.c b/data.c
index da8d422..a5f46e8 100644
--- a/data.c
+++ b/data.c
@@ -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);