Some bits here and there...
This commit is contained in:
@@ -15,8 +15,12 @@ static void open_logs(void)
|
||||
{
|
||||
if ((fderr = fopen(conf.rmps.errlog, "a")) == NULL)
|
||||
fderr = stderr;
|
||||
else
|
||||
setvbuf(fderr, NULL, _IOLBF, 0);
|
||||
if ((fdout = fopen(conf.rmps.logfile, "a")) == NULL)
|
||||
fdout = stdout;
|
||||
else
|
||||
setvbuf(fdout, NULL, _IOLBF, 0);
|
||||
}
|
||||
|
||||
void log_ssl(void)
|
||||
@@ -65,7 +69,6 @@ void log_trace(LOG_LEVEL lvl, char *fmt, ... )
|
||||
|
||||
va_start(list, fmt);
|
||||
vfprintf(fp, fmt_with_pfx, list);
|
||||
fflush(fp);
|
||||
va_end(list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user