diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-22 14:45:04 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-22 14:45:04 +0200 |
commit | 9916742f31bdce3cf9d0f8e9052d0357d524f73e (patch) | |
tree | 0d6f72b43fa5ced683a11a6e5a47573b4ce961a2 /src/log.c | |
parent | f0ef986ba74e3ee45fa2f01998719b8f28694d3f (diff) | |
download | connman-9916742f31bdce3cf9d0f8e9052d0357d524f73e.tar.gz connman-9916742f31bdce3cf9d0f8e9052d0357d524f73e.tar.bz2 connman-9916742f31bdce3cf9d0f8e9052d0357d524f73e.zip |
Add some extra logging output
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -92,10 +92,13 @@ void connman_debug(const char *format, ...) void __connman_toggle_debug(void) { - if (debug_enabled == TRUE) + if (debug_enabled == TRUE) { + connman_info("Disabling debug output"); debug_enabled = FALSE; - else + } else { + connman_info("Enabling debug output"); debug_enabled = TRUE; + } } int __connman_log_init(gboolean detach, gboolean debug) @@ -109,7 +112,8 @@ int __connman_log_init(gboolean detach, gboolean debug) syslog(LOG_INFO, "Connection Manager version %s", VERSION); - debug_enabled = debug; + if (debug == TRUE) + __connman_toggle_debug(); return 0; } |