build: Add missing GLib log domains

The daemon sources and libupower-glib were built without their historic
log domains which meant some debug messages did not appear when running
upowerd in verbose mode.

This fixes the test_no_poll_batteries test.
This commit is contained in:
Bastien Nocera 2021-09-07 12:23:41 +02:00
parent 69a7cc39db
commit 9035db94fc
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ libupower_glib = shared_library('upower-glib',
include_directories: [ '..' ],
c_args: [
'-DUP_COMPILATION',
'-DG_LOG_DOMAIN="libupower-glib"',
],
soversion: soversion,
version: libversion,

View file

@ -43,6 +43,7 @@ upowerd_private = static_library('upowerd-private',
'up-native.h',
],
dependencies: [ upowerd_deps ],
c_args: [ '-DG_LOG_DOMAIN="UPower"' ],
)
upowerd = executable('upowerd',