diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-04 17:53:46 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-04 18:31:03 +0100 |
commit | 86ccdcf3665d2cac15a2f59c62d6bc2e2526cc33 (patch) | |
tree | 4253010d2d15ce28cb8defc9ff3cc7d3969a66ae | |
parent | 7e4178b383f65e9a564b7fa20292bfa36cce7e93 (diff) | |
download | NetworkManager-86ccdcf3665d2cac15a2f59c62d6bc2e2526cc33.tar.gz |
ifcfg-rh: log debug level message when loading of ifcfg file fails for common reasons
-rw-r--r-- | src/settings/plugins/ifcfg-rh/plugin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/settings/plugins/ifcfg-rh/plugin.c b/src/settings/plugins/ifcfg-rh/plugin.c index d28e3bf6c4..1fb6b78947 100644 --- a/src/settings/plugins/ifcfg-rh/plugin.c +++ b/src/settings/plugins/ifcfg-rh/plugin.c @@ -207,8 +207,10 @@ update_connection (SettingsPluginIfcfg *self, && !protect_existing_connection && (!protected_connections || !g_hash_table_contains (protected_connections, connection))) remove_connection (self, connection); - if (!source && !ignore_error) - _LOGW ("loading \"%s\" fails: %s", full_path, local ? local->message : "(unknown reason)"); + if (!source) { + _NMLOG (ignore_error ? LOGL_DEBUG : LOGL_WARN, + "loading \"%s\" fails: %s", full_path, local ? local->message : "(unknown reason)"); + } g_propagate_error (error, local); return NULL; } |