fetchmail-friends
[Top] [All Lists]

[fetchmail] Suggestion for small change to logging

2002-10-21 03:20:15
When I examine my syslog (fetchmail running as daemon) I see when
fetchmail falls asleep, but not when it wakes up again. This makes it hard
to determine the current status of fetchmail. I examined this and found a
"asymmetry". The "Sleeping" message is sent when not using silent mode, 
but the "waking up" message is only sent when running in verbose mode.
This little patch takes care of that. Now I get two messages nicely
framing the poll cycle in my log.

Regards, Jan Klaverstijn

--- fetchmail-6.1.1.orig/fetchmail.c    Tue Sep 17 11:34:50 2002
+++ fetchmail-6.1.1/fetchmail.c Mon Oct 21 11:55:32 2002
@@ -761,7 +761,7 @@
                    ctl->wedged = FALSE;
            }

-           if (outlevel >= O_VERBOSE)
+           if (outlevel > O_SILENT)
                report(stdout, GT_("awakened at %s\n"), timestamp());
        }
     } while




<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] Suggestion for small change to logging, Jan Klaverstijn <=