Skip to content

Commit

Permalink
processor: Register logger stat in processor context
Browse files Browse the repository at this point in the history
  • Loading branch information
shramov committed Dec 26, 2024
1 parent f5ea867 commit 845a025
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/processor/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <signal.h>
Expand Down Expand Up @@ -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<tll::Channel> loader;
{
tll::Channel::Url lurl;
Expand Down

0 comments on commit 845a025

Please sign in to comment.