From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] log.dat: Fixes bug#12950 - adding apcupsd to system logs list Date: Wed, 22 Feb 2023 09:52:17 +0000 Message-ID: <269B858A-452B-41EA-BD7D-A1F009463CC5@ipfire.org> In-Reply-To: <20230221135517.6286-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0974541015289520818==" List-Id: --===============0974541015289520818== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Michael Tremer > On 21 Feb 2023, at 13:55, Adolf Belka wrote: >=20 > - Patch tested out on my production system that has apcupsd running on it. = APCUPS was > in the list of options in the system logs and entries from apcupsd were e= xtracted > correctly in the wui. >=20 > 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(+) >=20 > 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 >=20 --===============0974541015289520818==--