summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-04-14 13:30:21 +0200
committerThomas Haller <thaller@redhat.com>2014-04-14 15:00:30 +0200
commit3f153c9098ee9b6e86f26580dffb63a936fc07b3 (patch)
treeb93da281b18ebeb75c22dd90a96ed4a7e2272df3
parent3ba48a40faeaabb5be911acc9edabc6ade41330d (diff)
downloadNetworkManager-th/nm-logging-glib.tar.gz
nmtst: redirect glib messages to nm-logging (if available)th/nm-logging-glib
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--libnm-util/nm-test-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm-util/nm-test-utils.h b/libnm-util/nm-test-utils.h
index c3a96f94ac..e7501fc4eb 100644
--- a/libnm-util/nm-test-utils.h
+++ b/libnm-util/nm-test-utils.h
@@ -61,6 +61,7 @@ nmtst_init (int *argc, char ***argv, const char *log_level, const char *log_doma
if (log_level || log_domains) {
gboolean success = FALSE;
#ifdef NM_LOGGING_H
+ nm_logging_set_glib_handler ();
success = nm_logging_setup (log_level, log_domains, NULL, NULL);
#endif
g_assert (success);