diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-05-29 07:59:53 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-05-29 07:59:53 +0000 |
commit | 88dbe5e39105112e4a666d1a182b7e0e5236102e (patch) | |
tree | 944e01d2b57045eece33e086f3fa8543b6609c24 /fetchmail.c | |
parent | e168a13ce589300db74c09e82bbe63c1297a1274 (diff) | |
download | fetchmail-88dbe5e39105112e4a666d1a182b7e0e5236102e.tar.gz fetchmail-88dbe5e39105112e4a666d1a182b7e0e5236102e.tar.bz2 fetchmail-88dbe5e39105112e4a666d1a182b7e0e5236102e.zip |
Fix Debian Bug#282259: sleeping/awakened msgs need verbose for syslog/logfile.
svn path=/branches/BRANCH_6-3/; revision=5350
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 ad02b700..37abf44b 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -836,7 +836,8 @@ int main(int argc, char **argv) exit(PS_AUTHFAIL); } - if (outlevel > O_SILENT) + if ((outlevel > O_SILENT && !run.use_syslog && isatty(1)) + || outlevel > O_NORMAL) report(stdout, GT_("sleeping at %s for %d seconds\n"), timestamp(), run.poll_interval); @@ -871,11 +872,11 @@ int main(int argc, char **argv) ctl->wedged = FALSE; } - if (outlevel > O_SILENT) + if ((outlevel > O_SILENT && !run.use_syslog && isatty(1)) + || outlevel > O_NORMAL) report(stdout, GT_("awakened at %s\n"), timestamp()); } - } while - (run.poll_interval); + } while (run.poll_interval); if (outlevel >= O_VERBOSE) report(stdout, GT_("normal termination, status %d\n"), |