Start working on client listener

This commit is contained in:
2016-08-29 17:21:20 +03:00
parent fa16b4fb8c
commit 97d7ec8b13
11 changed files with 322 additions and 77 deletions

2
log.c
View File

@@ -51,7 +51,7 @@ void log(LOG_LEVEL lvl, char *fmt, ... )
time_t t = time(NULL);
struct tm tm;
localtime_r(&t, &tm);
if (conf.rmps.loglevel == ERROR || conf.rmps.loglevel == WARNING)
if (lvl == ERROR || lvl == WARNING)
fp = fderr;
else
fp = fdout;