summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-21 22:11:58 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-21 22:11:58 +0100
commit346c30414e8a347aa001758d666124aec4035cd9 (patch)
tree45cba40b8ff7a56e69b60e0900709719327eb6e8 /src/log.c
parent8074bba2f209e26bc2ab6cf0426241f5ec30da23 (diff)
downloadconnman-346c30414e8a347aa001758d666124aec4035cd9.tar.gz
connman-346c30414e8a347aa001758d666124aec4035cd9.tar.bz2
connman-346c30414e8a347aa001758d666124aec4035cd9.zip
Add support for toggling debug output
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 33d2bf50..3a87b936 100644
--- a/src/log.c
+++ b/src/log.c
@@ -90,6 +90,14 @@ void connman_debug(const char *format, ...)
va_end(ap);
}
+void __connman_toggle_debug(void)
+{
+ if (debug_enabled == TRUE)
+ debug_enabled = FALSE;
+ else
+ debug_enabled = TRUE;
+}
+
int __connman_log_init(gboolean detach, gboolean debug)
{
int option = LOG_NDELAY | LOG_PID;