Skip to content

MessageSvc format string in RecExUtils: Use new option to shorten the source-name

Walter Lampl requested to merge wlampl/athena:RecExMessageUpdate into master

With this MR we use a new feature of the Gaudi MessageSvc in RecExCommon: Always print the name of the component emitting the message instead of its parents. With our deep stack of AlgoTools we often don't see the entire tool-chain, even if the component field is quite long.

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:

  • If the field-width can accommodate the name of the last component, it will print it preceded by three dots and filling up the remaining width by printing the beginning of the input string
  • If the field-width can not even accommodate the last component-name or if no dot is found, it will cut out the middle-part, eg print the beginning of the input string, three dots and the end of the input string
Edited by Walter Lampl

Merge request reports