callouts: downgrade logging severity of messages to g_info() and g_debug()
authorThomas Haller <thaller@redhat.com>
Wed, 24 Feb 2016 14:17:02 +0000 (15:17 +0100)
committerThomas Haller <thaller@redhat.com>
Wed, 24 Feb 2016 19:04:29 +0000 (20:04 +0100)
commitff527652c71fb42f4f0d517c42fbf38db13ea0a6
tree123dbbd42dc32458887f5b17d6ba135312461d2e
parent17779975c84bdbf5061099a5188d71a3ddbdb597
callouts: downgrade logging severity of messages to g_info() and g_debug()

In dispatcher, we install a log-handler which maps G_LOG_LEVEL_MESSAGE
to syslog priority LOG_NOTICE, which in turn causes journal to highlight
the message. We don't want that so instead use g_info() and g_debug()
which maps to lower syslog levels.

There is only one problem, in debug-mode, we don't use syslog but the
default logging handler from glib. In this case, we have to set
G_MESSAGES_DEBUG otherwise g_info()/g_debug() is suppressed.
callouts/nm-dispatcher.c