From bfce5e76ab4909c1c2f0a51dad4a7d141993266b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Thu, 26 Dec 2024 19:21:25 +0100 Subject: [PATCH] mana root plugin: change logging to log.c --- src/mana_plugin_root_histogram.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mana_plugin_root_histogram.cc b/src/mana_plugin_root_histogram.cc index ad7b704..11ab4bc 100644 --- a/src/mana_plugin_root_histogram.cc +++ b/src/mana_plugin_root_histogram.cc @@ -22,7 +22,7 @@ struct Context MANA_DEFINE_PLUGIN_INIT(init) { - log_set_level(LOG_DEBUG); + log_set_level(LOG_INFO); static Context g_ctx; log_debug("init: ctx=%p", &g_ctx); return &g_ctx; @@ -113,7 +113,6 @@ inline std::vector> make_raw_histos(TDirectory *baseDir, auto bins = 1u << std::min(bits, 16u); auto maxValue = std::pow(2.0, bits); ObjectPath path(jOutput["name"].get()); - spdlog::info("path={}, bins={}, maxValue={}", path.path, bins, maxValue); baseDir->cd(); root_mkpath_cd(path.components.begin(), path.components.end()); @@ -158,8 +157,8 @@ MANA_DEFINE_PLUGIN_BEGIN_RUN(begin_run) ctx->outputFile = std::make_unique("output.root", "RECREATE"); ctx->hitCounts = make_hitcount_histos(ctx->outputFile.get(), jRun); ctx->rawHistograms = make_raw_histos(ctx->outputFile.get(), jRun); - spdlog::info("hitCount histograms: {}", histo_info(ctx->hitCounts)); - spdlog::info("raw histograms: {}", histo_info(ctx->rawHistograms)); + log_info("hitCount histograms: %s", histo_info(ctx->hitCounts).c_str()); + log_info("raw histograms: %s", histo_info(ctx->rawHistograms).c_str()); } MANA_DEFINE_PLUGIN_END_RUN(end_run)