Minor logging changes

This commit is contained in:
z3APA3A 2018-04-21 01:24:18 +03:00
parent 098b6194df
commit d1b527b523
2 changed files with 3 additions and 3 deletions

View File

@ -632,8 +632,8 @@ void logstdout(struct clientparam * param, const unsigned char *s) {
FILE *log;
pthread_mutex_lock(&log_mutex);
log = param->srv->stdlog?param->srv->stdlog:conf.stdlog?conf.stdlog:stdout;
dobuf(param, tmpbuf, s, NULL);
log = param->srv->stdlog?param->srv->stdlog:conf.stdlog?conf.stdlog:stdout;
if(!param->nolog)if(fprintf(log, "%s\n", tmpbuf) < 0) {
perror("printf()");
};

View File

@ -1776,10 +1776,12 @@ void freeconf(struct extparam *confp){
logname = confp->logname;
confp->logname = NULL;
*/
confp->logfunc = lognone;
logformat = confp->logformat;
confp->logformat = NULL;
confp->rotate = 0;
confp->logtype = NONE;
confp->logtime = confp->time = 0;
archiverc = confp->archiverc;
confp->archiverc = 0;
@ -1801,8 +1803,6 @@ void freeconf(struct extparam *confp){
numservers = 0;
acl = confp->acl;
confp->acl = NULL;
confp->logtime = confp->time = 0;
confp->logfunc = lognone;
usleep(SLEEPTIME);