From b0c46b75a0a6952a05f2b6b8b0bff43b1c83ec78 Mon Sep 17 00:00:00 2001 From: Barthelemy Date: Thu, 5 Nov 2026 10:44:39 +0100 Subject: [PATCH] [QC-1364] Fix the InfoLogger context retrieval and remove extraneous logging --- Framework/src/runnerUtils.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Framework/src/runnerUtils.cxx b/Framework/src/runnerUtils.cxx index 9270839f4c..e5627aa9a1 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);