Default MessageSvc format lacks space before level
The default MessageSvc format lacks a space between the source and the level (see here):
static constexpr const char* DEFAULT_FORMAT = "% F%18W%S%7W%R%T %0W%M";
Whenever the source is too long, this leads to cases like
MyVeryLongCompo...WARNING Some message here
or possibly even worse
ComponentComponentWARNING Some message here
The practical consequence is that the the countErrorLines
QMTest validator helper does not catch such warnings.
We should either add a space in the default format (affecting every Gaudi job output out there which does not set a custom format) or work around it in countErrorLines
.
PS Note that a slightly less intrusive way to update the format is to reduce the source field size by one when adding a space.
-static constexpr const char* DEFAULT_FORMAT = "% F%18W%S%7W%R%T %0W%M";
+static constexpr const char* DEFAULT_FORMAT = "% F%17W %S%7W%R%T %0W%M";