summaryrefslogtreecommitdiff
path: root/src/devices/nm-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/nm-device.c')
-rw-r--r--src/devices/nm-device.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 415465ada2..913c48840b 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -8092,6 +8092,7 @@ nm_device_spawn_iface_helper (NMDevice *self)
const char *method;
GPtrArray *argv;
gs_free char *dhcp4_address = NULL;
+ char *logging_backend;
if (priv->state != NM_DEVICE_STATE_ACTIVATED)
return;
@@ -8110,6 +8111,17 @@ nm_device_spawn_iface_helper (NMDevice *self)
g_ptr_array_add (argv, g_strdup ("--uuid"));
g_ptr_array_add (argv, g_strdup (nm_connection_get_uuid (connection)));
+ logging_backend = nm_config_get_is_debug (nm_config_get ())
+ ? g_strdup ("debug")
+ : nm_config_data_get_value (NM_CONFIG_GET_DATA_ORIG,
+ NM_CONFIG_KEYFILE_GROUP_LOGGING,
+ NM_CONFIG_KEYFILE_KEY_LOGGING_BACKEND,
+ NM_CONFIG_GET_VALUE_STRIP | NM_CONFIG_GET_VALUE_NO_EMPTY);
+ if (logging_backend) {
+ g_ptr_array_add (argv, g_strdup ("--logging-backend"));
+ g_ptr_array_add (argv, logging_backend);
+ }
+
dhcp4_address = find_dhcp4_address (self);
method = nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP4_CONFIG);