Skip to content

PyJobTransforms: fix duplicate message printouts

Frank Winklmeier requested to merge fwinkl/athena:trflog into 24.0

Our transforms are currently printing many of the log messages twice, e.g.:

> Reco_tf.py  --AMIConfig q452 --imf False --maxEvents 25
...
PyJobTransforms.transform.execute 2024-05-14 12:13:54,879 INFO Resolving execution graph
Py:PyJobTransforms.transform    INFO Resolving execution graph
...

Only the line with the timestamp should be printed. This bug was introduced about 2 years ago in !48560 (merged) by importing the AthenaCommon.Logging module too early, i.e. before the transform installs its own root logger.

This MR fixes this and also adds a unit test so this does not re-occur.

cc @tadej

Merge request reports