From 845a0253f8a1a817405bf6a2ba7643bd6ee6a67b Mon Sep 17 00:00:00 2001 From: Pavel Shramov Date: Thu, 26 Dec 2024 13:00:02 +0300 Subject: [PATCH] processor: Register logger stat in processor context --- src/processor/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/processor/main.cc b/src/processor/main.cc index 247617c3..c14a0358 100644 --- a/src/processor/main.cc +++ b/src/processor/main.cc @@ -8,6 +8,7 @@ #include "tll/channel.h" #include "tll/logger.h" #include "tll/processor.h" +#include "tll/stat.h" #include "tll/util/argparse.h" #include @@ -71,6 +72,9 @@ int main(int argc, char *argv[]) tll::channel::Context context(cfg->sub("processor.defaults").value_or(tll::Config())); + if (auto stat = tll_logger_stat(); stat) + tll_stat_list_add(context.stat_list(), stat); + std::unique_ptr loader; { tll::Channel::Url lurl;