From 1986cc88a18168c01fbc5eb2b50c34a945307cd7 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Tue, 25 Aug 2015 14:11:44 +0200 Subject: [PATCH] dma: add loggingoption to weblog for mail Signed-off-by: Michael Tremer --- html/cgi-bin/logs.cgi/log.dat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 1813862fe0..e8635d7a3b 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -53,6 +53,7 @@ my %sections = ( 'red' => '(red:|pppd\[.*\]: |chat\[.*\]|pppoe\[.*\]|pptp\[.*\]|pppoa\[.*\]|pppoa3\[.*\]|pppoeci\[.*\]|ipppd|ipppd\[.*\]|kernel: ippp\d|kernel: isdn.*|ibod\[.*\]|dhcpcd\[.*\]|modem_run\[.*\])', 'ddns' => '(ddns\[\d+\]:)', 'dns' => '(dnsmasq\[.*\]: )', + 'dma' => '(dma\[.*\]: )', 'dhcp' => '(dhcpd: )', 'clamav' => '(clamd\[.*\]: |freshclam\[.*\]: )', 'collectd' => '(collectd\[.*\]: )', @@ -73,6 +74,7 @@ my %trsections = ( 'red' => 'RED', 'ddns' => $Lang::tr{'dynamic dns'}, 'dns' => 'DNS', + 'dma' => 'Mail', 'dhcp' => "$Lang::tr{'dhcp server'}", 'cron' => 'Cron', 'collectd' => 'Collectd', @@ -192,8 +194,10 @@ while ($gzindex >=0 && $loop) { # calculate file name if ($gzindex == 0) { $filestr = "/var/log/messages"; + $filestr = "/var/log/mail" if (${section} =~ 'dma'); } else { $filestr = "/var/log/messages.$gzindex"; + $filestr = "/var/log/mail.$gzindex" if (${section} =~ 'dma'); $filestr = "$filestr.gz" if -f "$filestr.gz"; } # now read file if existing -- 2.39.5