]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Log using current time, not ioloop_time.
authorTimo Sirainen <tss@iki.fi>
Wed, 4 Jun 2003 07:53:17 +0000 (10:53 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 4 Jun 2003 07:53:17 +0000 (10:53 +0300)
--HG--
branch : HEAD

src/lib/failures.c

index 4b25504245657479f006bea7e6e40263f64a3332..44920b96644701cd70e3dd2725cb9f379bc5b423 100644 (file)
@@ -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)