debug: use the "default" domain to log messages without a domain
This allows filtering messages without a domain using WIREPLUMBER_DEBUG
This commit is contained in:
@@ -246,8 +246,11 @@ wp_log_writer_default (GLogLevelFlags log_level,
|
|||||||
|
|
||||||
extract_common_fields (&cf, fields, n_fields);
|
extract_common_fields (&cf, fields, n_fields);
|
||||||
|
|
||||||
|
if (!cf.log_domain)
|
||||||
|
cf.log_domain = "default";
|
||||||
|
|
||||||
/* check if debug category is enabled */
|
/* check if debug category is enabled */
|
||||||
if (cf.log_domain && enabled_categories) {
|
if (enabled_categories) {
|
||||||
GPatternSpec **cat = enabled_categories;
|
GPatternSpec **cat = enabled_categories;
|
||||||
guint len;
|
guint len;
|
||||||
g_autofree gchar *reverse_domain = NULL;
|
g_autofree gchar *reverse_domain = NULL;
|
||||||
|
Reference in New Issue
Block a user