mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 23:38:11 +02:00
core: log setup of singleton instances
This commit is contained in:
parent
2cf274c03e
commit
cc16e94562
4 changed files with 10 additions and 3 deletions
|
|
@ -500,6 +500,8 @@ nm_auth_manager_setup (gboolean polkit_enabled)
|
|||
singleton_instance = self;
|
||||
nm_singleton_instance_register ();
|
||||
|
||||
nm_log_dbg (LOGD_CORE, "setup %s singleton (%p)", "NMAuthManager", singleton_instance);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ nm_bus_manager_setup (NMBusManager *instance)
|
|||
already_setup = TRUE;
|
||||
singleton_instance = instance;
|
||||
nm_singleton_instance_register ();
|
||||
nm_log_dbg (LOGD_CORE, "create %s singleton (%p)", "NMBusManager", singleton_instance);
|
||||
nm_log_dbg (LOGD_CORE, "setup %s singleton (%p)", "NMBusManager", singleton_instance);
|
||||
}
|
||||
|
||||
/**************************************************************/
|
||||
|
|
|
|||
|
|
@ -1686,8 +1686,13 @@ nm_config_setup (const NMConfigCmdLineOptions *cli, char **atomic_section_prefix
|
|||
g_assert (!singleton_instance);
|
||||
|
||||
singleton_instance = nm_config_new (cli, atomic_section_prefixes, error);
|
||||
if (singleton_instance)
|
||||
if (singleton_instance) {
|
||||
nm_singleton_instance_register ();
|
||||
|
||||
/* usually, you would not see this logging line because when creating the
|
||||
* NMConfig instance, the logging is not yet set up to print debug message. */
|
||||
nm_log_dbg (LOGD_CORE, "setup %s singleton (%p)", "NMConfig", singleton_instance);
|
||||
}
|
||||
return singleton_instance;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ nm_platform_setup (NMPlatform *instance)
|
|||
|
||||
nm_singleton_instance_register ();
|
||||
|
||||
nm_log_dbg (LOGD_CORE, "setup NMPlatform singleton (%p, %s)", instance, G_OBJECT_TYPE_NAME (instance));
|
||||
nm_log_dbg (LOGD_CORE, "setup %s singleton (%p, %s)", "NMPlatform", singleton_instance, G_OBJECT_TYPE_NAME (instance));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue