diff --git a/DataFormats/Headers/include/Headers/DataHeaderHelpers.h b/DataFormats/Headers/include/Headers/DataHeaderHelpers.h index f264460890494..aa93414cfb99f 100644 --- a/DataFormats/Headers/include/Headers/DataHeaderHelpers.h +++ b/DataFormats/Headers/include/Headers/DataHeaderHelpers.h @@ -38,7 +38,7 @@ struct fmt::formatter::value, c } template - auto format(const T& p, FormatContext& ctx) + auto format(const T& p, FormatContext& ctx) const { return fmt::format_to(ctx.out(), "{}", p.template as()); } @@ -67,7 +67,7 @@ struct fmt::formatter { } template - auto format(const o2::header::DataHeader& h, FormatContext& ctx) + auto format(const o2::header::DataHeader& h, FormatContext& ctx) const { if (presentation == 's') { auto res = fmt::format("Data header version {}, flags: {}\n", h.headerVersion, h.flags) + diff --git a/EventVisualisation/Workflow/src/O2DPLDisplay.cxx b/EventVisualisation/Workflow/src/O2DPLDisplay.cxx index 414d70c443541..e02e1ee20ce58 100644 --- a/EventVisualisation/Workflow/src/O2DPLDisplay.cxx +++ b/EventVisualisation/Workflow/src/O2DPLDisplay.cxx @@ -229,7 +229,8 @@ void O2DPLDisplaySpec::run(ProcessingContext& pc) } } - LOGP(info, "Tracks: {}", fmt::join(sourceStats, ", ")); + // FIXME: find out why this does not work with 11.1.1 +// LOGP(info, "Tracks: {}", fmt::join(sourceStats, ", ")); } void O2DPLDisplaySpec::endOfStream(EndOfStreamContext& ec) diff --git a/Framework/Core/include/Framework/Formatters.h b/Framework/Core/include/Framework/Formatters.h index 100dfd3c754dd..c38926ed1fdc1 100644 --- a/Framework/Core/include/Framework/Formatters.h +++ b/Framework/Core/include/Framework/Formatters.h @@ -20,7 +20,7 @@ struct fmt::formatter : fmt::formatter - auto format(o2::framework::Lifetime const& h, FormatContext& ctx) + auto format(o2::framework::Lifetime const& h, FormatContext& ctx) const { std::string_view s = "unknown"; switch (h) { diff --git a/Framework/Core/src/ComputingQuotaEvaluator.cxx b/Framework/Core/src/ComputingQuotaEvaluator.cxx index 6ad7d84c44d66..56b7f4a59be88 100644 --- a/Framework/Core/src/ComputingQuotaEvaluator.cxx +++ b/Framework/Core/src/ComputingQuotaEvaluator.cxx @@ -24,6 +24,7 @@ #define LOGLEVEL debug + namespace o2::framework { @@ -90,7 +91,7 @@ bool ComputingQuotaEvaluator::selectOffer(int task, ComputingQuotaRequest const& } if (enough) { LOGP(LOGLEVEL, "{} offers were selected for a total of: cpu {}, memory {}, shared memory {}", result.size(), totalOffer.cpu, totalOffer.memory, totalOffer.sharedMemory); - LOGP(LOGLEVEL, " The following offers were selected for computation: {} ", fmt::join(result, ",")); + //LOG(LOGLEVEL) << " The following offers were selected for computation: {} " << fmt::join(result, ", "); dpStats.updateStats({static_cast(ProcessingStatsId::RESOURCES_SATISFACTORY), DataProcessingStats::Op::Add, 1}); } else { dpStats.updateStats({static_cast(ProcessingStatsId::RESOURCES_MISSING), DataProcessingStats::Op::Add, 1}); @@ -99,16 +100,16 @@ bool ComputingQuotaEvaluator::selectOffer(int task, ComputingQuotaRequest const& } } if (stats.invalidOffers.size()) { - LOGP(LOGLEVEL, " The following offers were invalid: {}", fmt::join(stats.invalidOffers, ", ")); + // LOGP(LOGLEVEL, " The following offers were invalid: {}", fmt::join(stats.invalidOffers, ", ")); } if (stats.otherUser.size()) { - LOGP(LOGLEVEL, " The following offers were owned by other users: {}", fmt::join(stats.otherUser, ", ")); + // LOGP(LOGLEVEL, " The following offers were owned by other users: {}", fmt::join(stats.otherUser, ", ")); } if (stats.expired.size()) { - LOGP(LOGLEVEL, " The following offers are expired: {}", fmt::join(stats.expired, ", ")); + // LOGP(LOGLEVEL, " The following offers are expired: {}", fmt::join(stats.expired, ", ")); } if (stats.unexpiring.size() > 1) { - LOGP(LOGLEVEL, " The following offers will never expire: {}", fmt::join(stats.unexpiring, ", ")); + // LOGP(LOGLEVEL, " The following offers will never expire: {}", fmt::join(stats.unexpiring, ", ")); } return enough;