From d689030d28040a8dfc9ec9be00340fadb2342a01 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 4 Jun 2003 10:53:17 +0300 Subject: [PATCH] Log using current time, not ioloop_time. --HG-- branch : HEAD --- src/lib/failures.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.47.3