mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-24 22:15:04 +00:00
Always call srv_debug() from snac_debug().
This commit is contained in:
parent
a6712ba79a
commit
d69fa8d855
1 changed files with 3 additions and 5 deletions
8
snac.c
8
snac.c
|
@ -84,12 +84,10 @@ int validate_uid(char *uid)
|
||||||
void snac_debug(snac *snac, int level, d_char *str)
|
void snac_debug(snac *snac, int level, d_char *str)
|
||||||
/* prints a user debugging information */
|
/* 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) {
|
srv_debug(level, n_str);
|
||||||
xs *tm = xs_local_time("%H:%M:%S");
|
|
||||||
fprintf(stderr, "%s [%s] %s\n", tm, snac->uid, msg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue