From fa1ceee765ff59787b81ada1c7d2cd18768913e3 Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Fri, 6 Sep 2024 12:15:38 -0700 Subject: [PATCH] Move logger open into Process constructor --- Framework/src/Framework/Process.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Framework/src/Framework/Process.cxx b/Framework/src/Framework/Process.cxx index 12d6298e6..fb683284e 100644 --- a/Framework/src/Framework/Process.cxx +++ b/Framework/src/Framework/Process.cxx @@ -46,6 +46,12 @@ Process::Process(const framework::config::Parameters &configuration) eventHeader_ = 0; + // set up the logging for this run + logging::open(logging::convertLevel(termLevelInt_), + logging::convertLevel(fileLevelInt_), + logFileName_ // if this is empty string, no file is logged to + ); + auto run{configuration.getParameter("run", -1)}; if (run > 0) runForGeneration_ = run; @@ -136,11 +142,6 @@ Process::~Process() { void Process::run() { if (performance_) performance_->absolute_start(); - // set up the logging for this run - logging::open(logging::convertLevel(termLevelInt_), - logging::convertLevel(fileLevelInt_), - logFileName_ // if this is empty string, no file is logged to - ); // Counter to keep track of the number of events that have been // procesed