From: Timo Sirainen Date: Wed, 4 Jun 2003 07:53:17 +0000 (+0300) Subject: Log using current time, not ioloop_time. X-Git-Tag: 1.1.alpha1~4576 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d689030d28040a8dfc9ec9be00340fadb2342a01;p=thirdparty%2Fdovecot%2Fcore.git Log using current time, not ioloop_time. --HG-- branch : HEAD --- diff --git a/src/lib/failures.c b/src/lib/failures.c index 4b25504245..44920b9664 100644 --- a/src/lib/failures.c +++ b/src/lib/failures.c @@ -25,7 +25,6 @@ #include "lib.h" -#include "ioloop.h" #include "fd-close-on-exec.h" #include "printf-upper-bound.h" @@ -68,12 +67,14 @@ static void write_prefix(FILE *f) { struct tm *tm; char str[256]; + time_t now; if (log_prefix != NULL) fputs(log_prefix, f); if (log_stamp_format != NULL) { - tm = localtime(&ioloop_time); + now = time(NULL); + tm = localtime(&now); if (strftime(str, sizeof(str), get_log_stamp_format("unused"), tm) > 0)