client: Early call to osmo_init_logging2()

Change-Id: I8f6ee5a95c23821efb02872c41b3121ed532a819
changes/97/13497/1
Harald Welte 4 years ago
parent 03b24114b3
commit c7995e7112
  1. 3
      src/remsim_client.c

@ -133,6 +133,8 @@ int main(int argc, char **argv)
g_tall_ctx = talloc_named_const(NULL, 0, "global");
osmo_init_logging2(g_tall_ctx, &log_info);
g_client = talloc_zero(g_tall_ctx, struct bankd_client);
srvc = &g_client->srv_conn;
@ -150,7 +152,6 @@ int main(int argc, char **argv)
}
asn_debug = 0;
osmo_init_logging2(g_tall_ctx, &log_info);
if (bankd_conn_fsm_alloc(g_client) < 0) {
fprintf(stderr, "Unable to connect: %s\n", strerror(errno));

Loading…
Cancel
Save