Messages: Refine source field truncation
All threads resolved!
All threads resolved!
Compare changes
Files
2@@ -93,8 +93,8 @@ private:
@@ -143,6 +143,9 @@ private:
This MR addresses a longstanding annoyance, at least on the ATLAS side. With our deep stack of AlgTools the component name (with parents) is often longer than the source-field of the message. Since the source-name is truncated at the end we never see which component is actually emitting the message. This MR introduces a new format-specifier ('c') that cuts out the middle part of the source-name while giving priority to the last component in the stack. This way, a message like
InDetSCT_Clusterization.InDetSCT_ConditionsSumm... INFO Database will be used.
becomes
InDetSCT_Clusterization...InDetSCT_TdaqEnabledTool INFO Database will be used.
The abbreviation strategy is as follows: