From: Adam Bishop Date: Wed, 11 Mar 2015 14:47:27 +0000 (+0000) Subject: Explicitly call tr_log_open when we're not being used as a library X-Git-Tag: 1.5~14^2 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=9621108c0f2e4be514d461fe65c57cd006b174fd Explicitly call tr_log_open when we're not being used as a library --- diff --git a/tid/example/tidc_main.c b/tid/example/tidc_main.c index 9f27018..7050eb8 100644 --- a/tid/example/tidc_main.c +++ b/tid/example/tidc_main.c @@ -99,6 +99,9 @@ int main (int argc, int rc; gss_ctx_id_t gssctx; + /* Use standalone logging */ + tr_log_open(); + /* set logging levels */ talloc_set_log_stderr(); tr_log_threshold(LOG_CRIT); diff --git a/tid/example/tids_main.c b/tid/example/tids_main.c index b322de4..2570de9 100644 --- a/tid/example/tids_main.c +++ b/tid/example/tids_main.c @@ -270,6 +270,9 @@ int main (int argc, exit(1); } + /* Use standalone logging */ + tr_log_open(); + /* set logging levels */ tr_log_threshold(LOG_CRIT); tr_console_threshold(LOG_DEBUG); diff --git a/tr/tr_main.c b/tr/tr_main.c index 9c8f909..82d3ee9 100644 --- a/tr/tr_main.c +++ b/tr/tr_main.c @@ -252,6 +252,9 @@ int main (int argc, const char *argv[]) /* parse command-line arguments? -- TBD */ + /* Use standalone logging */ + tr_log_open(); + /* create a Trust Router instance */ if (NULL == (tr = tr_create())) { tr_crit("Unable to create Trust Router instance, exiting.");