Skip to content
Snippets Groups Projects

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

Merged Walter Lampl requested to merge wlampl/athena:RecExMessageUpdate into master
All threads resolved!

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading