From 4ac14c4741526af32ee031fb309001f3258221f2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 7 Feb 1999 17:35:51 +0000 Subject: Force timestamping if we're going to a logfile. svn path=/trunk/; revision=2378 --- fetchmail.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 47133a93..03af1481 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1258,11 +1258,12 @@ static int query_host(struct query *ctl) { int i, st; - if (outlevel >= O_VERBOSE) + /* + * If we're syslogging the progress messages are automatically timestamped. + * Force timestamping if we're going to a logfile. + */ + if (outlevel >= O_VERBOSE || run.logfile) { - time_t now; - - time(&now); report(stdout, _("%s querying %s (protocol %s) at %s\n"), VERSION, ctl->server.pollname, -- cgit v1.2.3