Werk #22742 · Oct 15, 26
logwatch: don't crash if the worst message is an empty line
A Log service crashed with
ValueError: 'summary' must be non-empty str or None, got '' if the most
severe message of the log file was an empty line, for example when a
pattern classified an empty line as WARN or CRIT.
The service now shows the number of messages per state as summary, e.g.
1 WARN messages.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p18All Editions
- 2.4.0p39All Editions