diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-10-04 12:59:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-10-04 12:59:41 +0000 |
commit | f325cabe946b0ac0de37bff183adcbcc114ad2c0 (patch) | |
tree | 2aad71f82e866b9d2fe051c755d6446d9df0b9a1 /fetchmail.c | |
parent | f61fa6d30aae87b06763e376ca74dfd8d6b4d8b5 (diff) | |
download | fetchmail-f325cabe946b0ac0de37bff183adcbcc114ad2c0.tar.gz fetchmail-f325cabe946b0ac0de37bff183adcbcc114ad2c0.tar.bz2 fetchmail-f325cabe946b0ac0de37bff183adcbcc114ad2c0.zip |
Logging logic changed. Verbosity lowered.
svn path=/trunk/; revision=3540
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fetchmail.c b/fetchmail.c index e4889e4d..a1c6754d 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -706,9 +706,9 @@ int main(int argc, char **argv) exit(PS_AUTHFAIL); } - if (outlevel >= O_VERBOSE) + if (outlevel > O_SILENT) report(stdout, - GT_("fetchmail: sleeping at %s\n"), timestamp()); + GT_("sleeping at %s\n"), timestamp()); /* * OK, now pause until it's time for the next poll cycle. @@ -718,11 +718,12 @@ int main(int argc, char **argv) */ if ((lastsig = interruptible_idle(run.poll_interval))) { + if (outlevel > O_SILENT) #ifdef SYS_SIGLIST_DECLARED - report(stdout, + report(stdout, GT_("awakened by %s\n"), sys_siglist[lastsig]); #else - report(stdout, + report(stdout, GT_("awakened by signal %d\n"), lastsig); #endif for (ctl = querylist; ctl; ctl = ctl->next) @@ -1272,7 +1273,7 @@ static int query_host(struct query *ctl) * 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 && outlevel > O_SILENT)) + if (outlevel >= O_VERBOSE) { report(stdout, GT_("%s querying %s (protocol %s) at %s: poll started\n"), VERSION, @@ -1353,7 +1354,7 @@ static int query_host(struct query *ctl) * 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 && outlevel > O_SILENT)) + if (outlevel >= O_VERBOSE) { report(stdout, GT_("%s querying %s (protocol %s) at %s: poll completed\n"), VERSION, |