diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-02-07 17:35:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-02-07 17:35:51 +0000 |
commit | 4ac14c4741526af32ee031fb309001f3258221f2 (patch) | |
tree | 762032f4de834dbceb4b6564ae66dda2b2cc2687 /fetchmail.c | |
parent | ed889b8a4abec6b5db13c03370850f423ea89757 (diff) | |
download | fetchmail-4ac14c4741526af32ee031fb309001f3258221f2.tar.gz fetchmail-4ac14c4741526af32ee031fb309001f3258221f2.tar.bz2 fetchmail-4ac14c4741526af32ee031fb309001f3258221f2.zip |
Force timestamping if we're going to a logfile.
svn path=/trunk/; revision=2378
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
1 files changed, 5 insertions, 4 deletions
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, |