From 78cdf4b8e606c9018fd70c526ca6c50b6c53ce1e Mon Sep 17 00:00:00 2001
From: George Kiagiadakis <george.kiagiadakis@collabora.com>
Date: Wed, 15 Apr 2020 18:33:33 +0300
Subject: [PATCH] debug: use the "default" domain to log messages without a
 domain

This allows filtering messages without a domain using WIREPLUMBER_DEBUG
---
 lib/wp/debug.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/wp/debug.c b/lib/wp/debug.c
index 4d7579b7..6f9bd899 100644
--- a/lib/wp/debug.c
+++ b/lib/wp/debug.c
@@ -246,8 +246,11 @@ wp_log_writer_default (GLogLevelFlags log_level,
 
   extract_common_fields (&cf, fields, n_fields);
 
+  if (!cf.log_domain)
+    cf.log_domain = "default";
+
   /* check if debug category is enabled */
-  if (cf.log_domain && enabled_categories) {
+  if (enabled_categories) {
     GPatternSpec **cat = enabled_categories;
     guint len;
     g_autofree gchar *reverse_domain = NULL;
-- 
GitLab