diff --git a/Framework/src/runnerUtils.cxx b/Framework/src/runnerUtils.cxx index 9270839f4..e5627aa9a 100644 --- a/Framework/src/runnerUtils.cxx +++ b/Framework/src/runnerUtils.cxx @@ -189,11 +189,10 @@ void initInfologger(framework::InitContext& iCtx, core::LogDiscardParameters inf { AliceO2::InfoLogger::InfoLoggerContext* ilContext = nullptr; AliceO2::InfoLogger::InfoLogger* il = nullptr; - try { + if (iCtx.services().active() && + iCtx.services().active()) { ilContext = &iCtx.services().get(); il = &iCtx.services().get(); - } catch (const framework::RuntimeErrorRef& err) { - ILOG(Error, Devel) << "Could not find the DPL InfoLogger" << ENDM; } infologgerDiscardParameters.file = templateILDiscardFile(infologgerDiscardParameters.file, iCtx);