summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-02-26 20:54:49 +0100
committerThomas Haller <thaller@redhat.com>2014-10-07 10:28:46 +0200
commit4f187d6b2fee22f153c7d85be54a1d85d4ce482a (patch)
tree0f0f6622949de654c419c0657b55726535fc6749
parentd1cd8967153f749abb101dff2a6022f7afe14f86 (diff)
downloadNetworkManager-th/bgo737380_log_connection_diff.tar.gz
core: log connection change with nm_utils_log_connection_diff()th/bgo737380_log_connection_diff
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/settings/nm-settings-connection.c2
-rw-r--r--src/settings/nm-settings.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c
index 7b18afe4da..f97816f957 100644
--- a/src/settings/nm-settings-connection.c
+++ b/src/settings/nm-settings-connection.c
@@ -468,6 +468,8 @@ nm_settings_connection_replace_settings (NMSettingsConnection *self,
*/
g_signal_handlers_block_by_func (self, G_CALLBACK (changed_cb), GUINT_TO_POINTER (TRUE));
+ nm_utils_log_connection_diff (new_connection, NM_CONNECTION (self), LOGL_DEBUG, LOGD_CORE, "update connection", "++ ");
+
nm_connection_replace_settings_from_connection (NM_CONNECTION (self), new_connection);
nm_settings_connection_set_flags (self,
NM_SETTINGS_CONNECTION_FLAGS_NM_GENERATED | NM_SETTINGS_CONNECTION_FLAGS_NM_GENERATED_ASSUMED,
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index 096608ce05..004b32c17d 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -874,6 +874,8 @@ claim_connection (NMSettings *self,
(gpointer) nm_connection_get_path (NM_CONNECTION (connection)),
g_object_ref (connection));
+ nm_utils_log_connection_diff (NM_CONNECTION (connection), NULL, LOGL_DEBUG, LOGD_CORE, "new connection", "++ ");
+
/* Only emit the individual connection-added signal after connections
* have been initially loaded.
*/