build: add --enable-more-logging configure option
authorThomas Haller <thaller@redhat.com>
Fri, 10 Apr 2015 05:39:14 +0000 (07:39 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 10 Apr 2015 16:08:09 +0000 (18:08 +0200)
commit63593a19d8e7d7fb5e844f0e3c8ac847e68699cb
tree2f6aa5e0d4f6e265ea1fc461e5e7697e77f33946
parent08ecafd2bf672e3e49a90f22dd87fabfa08f4e2c
build: add --enable-more-logging configure option

NM core uses nm-logging which is entirely configurable at runtime.
Other components use glib-logging, which can also be partly configured
via G_MESSAGES_DEBUG.

It makes sense to have a compile time option to enable some
logging statements that are only useful for heavy debugging.

For glib-logging, this is a way to enable/disable extra logging.
For nm-logging, we could alternatively configure a least log-level
that is enabled at compile time (that way, we could configure to prune all
LOGL_TRACE logging). While that might be useful (too), this gives
an alternative way to disable/enable logging.

Add a configure option --enable-more-logging and a NM_MORE_LOGGING define
for that.

If we don't find this useful after a while, we can simply remove it,
because our logging statements are not part of a "stable" behavior.
configure.ac