aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-07 17:35:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-07 17:35:51 +0000
commit4ac14c4741526af32ee031fb309001f3258221f2 (patch)
tree762032f4de834dbceb4b6564ae66dda2b2cc2687 /fetchmail.c
parented889b8a4abec6b5db13c03370850f423ea89757 (diff)
downloadfetchmail-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.c9
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,