From 9cfbd9da60a53af8909a5c80c9503dabe3934e08 Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Tue, 10 Sep 2019 14:17:46 +0200 Subject: [PATCH] fix logger setup in ddsim --- DDG4/python/DDSim/bin/ddsim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DDG4/python/DDSim/bin/ddsim b/DDG4/python/DDSim/bin/ddsim index 6de0c341a..200ad8d1f 100755 --- a/DDG4/python/DDSim/bin/ddsim +++ b/DDG4/python/DDSim/bin/ddsim @@ -12,13 +12,14 @@ import logging from DDSim.DD4hepSimulation import DD4hepSimulation -logging.basicConfig(format='%(levelname)s: %(message)s') -logger = logging.getLogger('DDSim') -logger.setLevel(logging.INFO) if __name__ == "__main__": RUNNER = DD4hepSimulation() RUNNER.parseOptions() + + logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) + logger = logging.getLogger('DDSim') + try: RUNNER.run() except NameError as e: -- GitLab