From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] log.dat: Fixes bug#12950 - adding apcupsd to system logs list Date: Tue, 21 Feb 2023 14:55:17 +0100 Message-ID: <20230221135517.6286-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5423433339758449486==" List-Id: --===============5423433339758449486== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - Patch tested out on my production system that has apcupsd running on it. AP= CUPS was in the list of options in the system logs and entries from apcupsd were ex= tracted correctly in the wui. Fixes: Bug#12950 Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- html/cgi-bin/logs.cgi/log.dat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 5fb1fcd5d..bf71b3c9f 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -49,6 +49,7 @@ $cgiparams{'ACTION'} =3D ''; $cgiparams{'SECTION'} =3D 'ipfire'; =20 my %sections =3D ( + 'apcupsd' =3D> '(apcupsd\[.*?\]: )', 'auth' =3D> '(\w+\(pam_unix\)\[.*\]: )', 'wio' =3D> '(wio:|wio\[.*\])', 'captive' =3D> '(Captive:)', @@ -81,6 +82,7 @@ my %sections =3D ( =20 # Translations for the %sections array. my %trsections =3D ( + 'apcupsd' =3D> 'APCUPS', 'auth' =3D> "$Lang::tr{'loginlogout'}", 'wio' =3D> 'Who Is Online?', 'captive' =3D> $Lang::tr{'Captive'}, --=20 2.39.2 --===============5423433339758449486==--