summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2023-01-24 22:23:01 +0530
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2023-01-25 09:55:34 +0000
commit717cc3e0fc4f88a3b25def32866ea2e029e5669d (patch)
tree67c4e322d361090d621bb3b545566382b4271461 /shell
parent8857a6b2e62319bad0116dd94a4618f24f84ba51 (diff)
downloadgnome-control-center-717cc3e0fc4f88a3b25def32866ea2e029e5669d.tar.gz
log: Show logs from Bluetooth panel
Logs from Bluetooth panel have "Bluetooth" as G_LOG_DOMAIN. Show them by default on -v
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/cc-log.c b/shell/cc-log.c
index e4434b3ca..33beac089 100644
--- a/shell/cc-log.c
+++ b/shell/cc-log.c
@@ -33,6 +33,7 @@
#include "cc-log.h"
#define DEFAULT_DOMAIN_PREFIX "cc"
+#define BLUETOOTH_DOMAIN_PREFIX "Bluetooth"
char *domains;
static int verbosity;
@@ -135,7 +136,9 @@ should_log (const char *log_domain,
return verbosity >= 4;
}
- if (!domains && g_str_has_prefix (log_domain, DEFAULT_DOMAIN_PREFIX))
+ if (!domains &&
+ (g_str_has_prefix (log_domain, DEFAULT_DOMAIN_PREFIX) ||
+ g_str_has_prefix (log_domain, BLUETOOTH_DOMAIN_PREFIX)))
return should_show_log_for_level (log_level, verbosity);
if (domains && matches_domain (domains, log_domain))