projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some extra logging output
[framework/connectivity/connman.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index
3a87b93
..
1651f38
100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-92,10
+92,13
@@
void connman_debug(const char *format, ...)
void __connman_toggle_debug(void)
{
void __connman_toggle_debug(void)
{
- if (debug_enabled == TRUE)
+ if (debug_enabled == TRUE) {
+ connman_info("Disabling debug output");
debug_enabled = FALSE;
debug_enabled = FALSE;
- else
+ } else {
+ connman_info("Enabling debug output");
debug_enabled = TRUE;
debug_enabled = TRUE;
+ }
}
int __connman_log_init(gboolean detach, gboolean debug)
}
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);
syslog(LOG_INFO, "Connection Manager version %s", VERSION);
- debug_enabled = debug;
+ if (debug == TRUE)
+ __connman_toggle_debug();
return 0;
}
return 0;
}