if (!silclog.scheduled) {
if (silclog.no_init == FALSE) {
fprintf(stderr,
- "Warning, trying to output without log files initialization, "
+ "Warning, log files not initialized, "
"log output is going to stderr\n");
silclog.no_init = TRUE;
}
FILE *fp = NULL;
SilcLog log;
+ if (!scheduler)
+ scheduler = silc_schedule_get_global();
+
log = silc_log_get_context(type);
if (!log)
return FALSE;
int len;
if ((strchr(debug_string, '(') && strchr(debug_string, ')')) ||
strchr(debug_string, '$'))
- string = strdup(debug_string);
+ string = silc_strdup(debug_string);
else
string = silc_string_regexify(debug_string);
len = strlen(string);