Werk #22742: logwatch: don't crash if the worst message is an empty line
| Component | Checks & agents | ||||||
| Title | logwatch: don't crash if the worst message is an empty line | ||||||
| Date | Oct 15, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
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.