if (!logf)
return;
vfprintf(logf, fmt, ap);
- if (debug)
- fflush(logf);
+ fflush(logf);
}
void pb_log(const char *fmt, ...)
debug = _debug;
}
+void pb_log_set_debug(bool _debug)
+{
+ debug = _debug;
+}
+
FILE *pb_log_get_stream(void)
{
static FILE *null_stream;