Skip to content
Snippets Groups Projects
Commit 9cfbd9da authored by Marko Petric's avatar Marko Petric Committed by Andre Sailer
Browse files

fix logger setup in ddsim

parent c90caa62
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment