Commit 30b1afd7 authored by Thomas Haller's avatar Thomas Haller

core: log connection change with nm_utils_log_connection_diff()

Signed-off-by: Thomas Haller's avatarThomas Haller <thaller@redhat.com>
parent 41e0d5b9
......@@ -470,6 +470,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,
......
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment