[exim-dev] small logging patch for abandon queue run

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthias Waffenschmidt
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] small logging patch for abandon queue run
Hello,

until now, the pid of a queue run was only written to the log file
when the queue run started or ended regularly, but not if the queue
run was cancelled because of a load greater than
deliver_queue_load_max.

As there may be several parallel queue runs and not all get killed by
a load peak, the information of the pid might be useful.

In addition, the event 'abandon queue run' was always written to the
log file no matter how the queue_run log selector was set. In my
opionion this should not be written if the operator explicitly has set
-queue_run.

Here's the small patch:

--- exim-4.60/src/queue.c.orig  Thu Jan 26 15:56:51 2006
+++ exim-4.60/src/queue.c       Thu Jan 26 15:59:41 2006
@@ -453,7 +453,8 @@
       load_average = os_getloadavg();
       if (load_average > deliver_queue_load_max)
         {
-        log_write(0, LOG_MAIN, "abandon queue run (load %.2f, max %.2f)",
+        log_write(L_queue_run, LOG_MAIN, "abandon queue run: %s (load %.2f, max %.2f)",
+         log_detail,
           (double)load_average/1000.0,
           (double)deliver_queue_load_max/1000.0);
         i = subcount;                 /* Don't process other directories */



-- 
Gruss / Best regards   |  LF.net GmbH        |  fon +49 711 90074-411
Matthias Waffenschmidt |  Ruppmannstr. 27    |  fax +49 711 90074-33
mw@???              |  D-70565 Stuttgart  |  http://www.lf.net