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

@@ -273,7 +273,7 @@ static int test_conf_syntax()
failed = 1;*/
} else if (!strcmp(buf, "rmps.loglevel")) {
if (strlen(tmp + 1) == 1 && (tmp[1] > '0' && tmp[1] < '5'))
conf.rmps.loglevel = tmp[1];
conf.rmps.loglevel = tmp[1] - '0';
else
failed = 1;
} else if (!strcmp(buf, "rmps.certfile")) {