Use thread-safe localtime and tweak loglevel

This commit is contained in:
2016-08-09 15:02:16 +03:00
parent 3fecfdbbc4
commit 0c4a57faed
3 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
#ifndef CONFPARSER_H
#define CONFPARSER_H
#include "log_trace.h"
#define MAXPATHSIZE 256
#define HOSTNAMESIZE 128
#define CFGLINESIZE 300
@@ -16,7 +18,7 @@ struct conf_rmps {
char bind_on_port[6];
char logfile[MAXPATHSIZE];
char errlog[MAXPATHSIZE];
char loglevel;
LOG_LEVEL loglevel;
char pidfile[MAXPATHSIZE];
char certfile[MAXPATHSIZE];
char keyfile[MAXPATHSIZE];