]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
log.dat: Fix an error with 'monit' logging too much data.
authorMatthias Fischer <matthias.fischer@ipfire.org>
Fri, 21 Jan 2022 17:05:04 +0000 (18:05 +0100)
committerMatthias Fischer <matthias.fischer@ipfire.org>
Fri, 21 Jan 2022 17:07:43 +0000 (18:07 +0100)
commitad8783982bc14abefd398a9541ab484338673e0d
treed8de74f02f116eca1a66d3498a26b28d106cdc73
parent5c8318fa67055bd21845647ff49aaf7e8b299bea
log.dat: Fix an error with 'monit' logging too much data.

Making the regex "non-greedy" fixes an error Jon found.

'monit' logged a whole line from '/var/log/messages' where it should only log the first part.

Reference:
https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/non-greedy-perl-regex.html

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
html/cgi-bin/logs.cgi/log.dat