client: Early call to osmo_init_logging2()
Change-Id: I8f6ee5a95c23821efb02872c41b3121ed532a819
This commit is contained in:
parent
03b24114b3
commit
c7995e7112
|
@ -133,6 +133,8 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
g_tall_ctx = talloc_named_const(NULL, 0, "global");
|
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);
|
g_client = talloc_zero(g_tall_ctx, struct bankd_client);
|
||||||
|
|
||||||
srvc = &g_client->srv_conn;
|
srvc = &g_client->srv_conn;
|
||||||
|
@ -150,7 +152,6 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_debug = 0;
|
asn_debug = 0;
|
||||||
osmo_init_logging2(g_tall_ctx, &log_info);
|
|
||||||
|
|
||||||
if (bankd_conn_fsm_alloc(g_client) < 0) {
|
if (bankd_conn_fsm_alloc(g_client) < 0) {
|
||||||
fprintf(stderr, "Unable to connect: %s\n", strerror(errno));
|
fprintf(stderr, "Unable to connect: %s\n", strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue