diff options
author | default <nobody@localhost> | 2022-09-24 10:12:26 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-24 10:12:26 +0200 |
commit | d69fa8d855cfe29fd7c6b891701a4d895b0c3afe (patch) | |
tree | ed319873660356f9e0218c74e86d71992f901252 | |
parent | a6712ba79a617e4481117fe486858d62977f0260 (diff) |
Always call srv_debug() from snac_debug().
-rw-r--r-- | snac.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -84,12 +84,10 @@ int validate_uid(char *uid) void snac_debug(snac *snac, int level, d_char *str) /* prints a user debugging information */ { - xs *msg = str; + xs *o_str = str; + d_char *n_str = xs_fmt("[%s] %s", snac->uid, o_str); - if (dbglevel >= level) { - xs *tm = xs_local_time("%H:%M:%S"); - fprintf(stderr, "%s [%s] %s\n", tm, snac->uid, msg); - } + srv_debug(level, n_str); } |