core: enable "log-with-ptr" by default for platform and route-manager

Arguably, we currently only have one instance of NMPlatform,
NMRouteManager, NMDefaultRouteManager -- the one owned by the
NMNetns singleton.

Hence, all these instances we create with "log-with-ptr" set explicitly
to false.

In the future we want to support namespaces, and it will be be common to
have multiple instances. For that we have "log-with-ptr" so we are able
to disambiguiate the logging.

Change the default to TRUE because it makes more sense. It has currently
no effect as the default is never used.

(cherry picked from commit 41148caba8)
This commit is contained in:
Thomas Haller 2017-04-18 13:16:54 +02:00
parent 7b91e8b6db
commit c2297fb66c
3 changed files with 3 additions and 3 deletions

View file

@ -1549,7 +1549,7 @@ nm_default_route_manager_class_init (NMDefaultRouteManagerClass *klass)
obj_properties[PROP_LOG_WITH_PTR] =
g_param_spec_boolean (NM_DEFAULT_ROUTE_MANAGER_LOG_WITH_PTR, "", "",
FALSE,
TRUE,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);

View file

@ -1297,7 +1297,7 @@ nm_route_manager_class_init (NMRouteManagerClass *klass)
obj_properties[PROP_LOG_WITH_PTR] =
g_param_spec_boolean (NM_ROUTE_MANAGER_LOG_WITH_PTR, "", "",
FALSE,
TRUE,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);

View file

@ -4645,7 +4645,7 @@ nm_platform_class_init (NMPlatformClass *platform_class)
g_object_class_install_property
(object_class, PROP_LOG_WITH_PTR,
g_param_spec_boolean (NM_PLATFORM_LOG_WITH_PTR, "", "",
FALSE,
TRUE,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));