char *message, void *context)
{
printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
- "DEBUG: %s:%d:%s", function, line, message);
+ "DEBUG: %s:%d: %s", function, line, message);
return TRUE;
}
if (debug) {
const char *debug_string = settings_get_str("debug_string");
i_debug = silc_debug = TRUE;
- silc_log_set_debug_string(debug_string);
+ if (strlen(debug_string))
+ silc_log_set_debug_string(debug_string);
silc_log_set_debug_callbacks(silc_irssi_debug_print, NULL, NULL, NULL);
return;
}
static bool silc_log_misc(SilcLogType type, char *message, void *context)
{
- fprintf(stderr, "%s\n", message);
+ printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", message);
return TRUE;
}