Skip to content

Commit 46ca043

Browse files
committed
[QC-1364] Fix the InfoLogger context retrieval and remove extraneous logging
1 parent f2e178b commit 46ca043

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎Framework/src/runnerUtils.cxx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,10 @@ void initInfologger(framework::InitContext& iCtx, core::LogDiscardParameters inf
189189
{
190190
AliceO2::InfoLogger::InfoLoggerContext* ilContext = nullptr;
191191
AliceO2::InfoLogger::InfoLogger* il = nullptr;
192-
try {
192+
if (iCtx.services().active<AliceO2::InfoLogger::InfoLoggerContext>() &&
193+
iCtx.services().active<AliceO2::InfoLogger::InfoLogger>()) {
193194
ilContext = &iCtx.services().get<AliceO2::InfoLogger::InfoLoggerContext>();
194195
il = &iCtx.services().get<AliceO2::InfoLogger::InfoLogger>();
195-
} catch (const framework::RuntimeErrorRef& err) {
196-
ILOG(Error, Devel) << "Could not find the DPL InfoLogger" << ENDM;
197196
}
198197

199198
infologgerDiscardParameters.file = templateILDiscardFile(infologgerDiscardParameters.file, iCtx);

0 commit comments

Comments
 (0)