NetworkManager/src/core/dhcp
Thomas Haller 341b6e0704
all: change G_LOG_DOMAIN to "nm"
glib requires G_LOG_DOMAIN defined so that log messages are labeled
to belong to NetworkManager or libnm.

However, we don't actually want to use glib logging. Our library libnm
MUST not log anything, because it spams the user's stdout/stderr.
Instead, a library must report notable events via its API. Note that
there is also LIBNM_CLIENT_DEBUG to explicitly enable debug logging,
but that doesn't use glib logging either.

Also, the daemon does not use glib logging instead it logs to syslog.
When run with `--debug`.

Hence, it's not useful for us to define different G_LOG_DOMAIN per
library/application, because none of our libraries/applications should
use glib logging.

It also gets slightly confusing, because we have the static library like
`src/libnm-core-impl`, which is both linked into `libnm` (the library)
and `NetworkManager` (the daemon). Which logging domain should they use?

Set the G_LOG_DOMAIN to "nm" everywhere. But no longer do it via `-D`
arguments to the compiler.

See-also: https://developer.gnome.org/glib/stable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS
2021-02-18 19:46:57 +01:00
..
tests dhcp: rework DHCP options to not carry around option array 2021-02-11 12:26:18 +01:00
meson.build all: change G_LOG_DOMAIN to "nm" 2021-02-18 19:46:57 +01:00
nm-dhcp-client-logging.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-client.c dhcp: downgrade logging messages for DHCP to <debug> 2021-02-11 14:33:32 +01:00
nm-dhcp-client.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-dhclient-utils.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhclient-utils.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-dhclient.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhcpcanon.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhcpcd.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-helper-api.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-helper.c all: add "nm-glib-aux/nm-default-glib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-dhcp-listener.c build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-dhcp-listener.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-manager.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-manager.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-nettools.c dhcp: rework DHCP options to not carry around option array 2021-02-11 12:26:18 +01:00
nm-dhcp-options.c dhcp: binary search in nm_dhcp_option_find() 2021-02-11 13:00:18 +01:00
nm-dhcp-options.h dhcp: rework DHCP options to not carry around option array 2021-02-11 12:26:18 +01:00
nm-dhcp-systemd.c dhcp: rework DHCP options to not carry around option array 2021-02-11 12:26:18 +01:00
nm-dhcp-utils.c build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-dhcp-utils.h dhcp/nettools: make data pointer const 2021-02-11 09:23:18 +01:00