src: use a common log domain in the daemon code

glib log domains are not like the gstreamer ones, where you can enable
many of them with a wildcard, therefore it is not particularly useful
to have different ones per file
This commit is contained in:
George Kiagiadakis
2019-04-16 15:44:04 +03:00
parent 6f740a2a13
commit a8450b0f02
4 changed files with 5 additions and 7 deletions

View File

@@ -6,8 +6,6 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#define G_LOG_DOMAIN "wireplumber-core"
#include "core.h"
#include "loop-source.h"
#include "module-loader.h"

View File

@@ -6,8 +6,6 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#define G_LOG_DOMAIN "wireplumber-loop"
#include "loop-source.h"
#define WP_LOOP_SOURCE(x) ((WpLoopSource *) x)

View File

@@ -6,8 +6,6 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#define G_LOG_DOMAIN "wireplumber"
#include "core.h"
#include "utils.h"

View File

@@ -8,7 +8,11 @@ wp_sources = [
executable('wireplumber',
wp_sources,
c_args : [ '-D_GNU_SOURCE', '-DG_LOG_USE_STRUCTURED' ],
c_args : [
'-D_GNU_SOURCE',
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="wireplumber"'
],
install: true,
dependencies : [gobject_dep, gmodule_dep, gio_dep, pipewire_dep, wp_dep],
)