use osmo_init_logging2()

Change-Id: I2c28e6e6e3eb9f587680b34330e03408e32c2b94
changes/27/7827/1
Pau Espin 5 years ago
parent f97296e0ce
commit e1977fcd22
  1. 2
      Transceiver52M/osmo-trx.cpp
  2. 7
      tests/CommonLibs/LogTest.cpp

@ -506,7 +506,7 @@ int main(int argc, char *argv[])
convolve_init();
convert_init();
osmo_init_logging(&log_info);
osmo_init_logging2(tall_trx_ctx, &log_info);
osmo_stats_init(tall_trx_ctx);
vty_init(&g_vty_info);
ctrl_vty_init(tall_trx_ctx);

@ -29,6 +29,8 @@
#include "Logger.h"
extern "C" {
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/application.h>
#include <osmocom/core/utils.h>
#include "debug.h"
@ -50,7 +52,10 @@ int main(int argc, char *argv[])
linfo.cat = categories;
linfo.num_cat = ARRAY_SIZE(categories);
osmo_init_logging(&linfo);
void *tall_ctx = talloc_named_const(NULL, 1, "OsmoTRX context");
msgb_talloc_ctx_init(tall_ctx, 0);
osmo_init_logging2(tall_ctx, &linfo);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);

Loading…
Cancel
Save