Fixed date in logger

This commit is contained in:
Thomas Kolb 2016-03-25 21:55:26 +01:00
parent 0d42e9c22a
commit 4722639ae1

View file

@ -114,7 +114,7 @@ void logger_log(int level, const char *format, ...) {
struct timeval tv;
gettimeofday(&tv, NULL);
strftime(timebuf, 32, "%Y-%M-%d %H:%M:%S.%%03d", localtime(&(tv.tv_sec)));
strftime(timebuf, 32, "%Y-%m-%d %H:%M:%S.%%03d", localtime(&(tv.tv_sec)));
snprintf(timebuf2, 32, timebuf, tv.tv_usec/1000);
if(level >= LVL_DUMP) {