diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-16 11:35:12 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-21 11:51:43 -0400 |
commit | 8bde1d0c9d322f3b9a8dd24cfc8417b9231314d8 (patch) | |
tree | b39c6ce74e43be0627405ce72a2f8ed5c24421f2 /src | |
parent | 2e6534a9a5ad5f02a37e7dca878c521f38df8456 (diff) |
networkd: use LOG_WARN not LOG_ERR for non-fatal errors
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c index 723d10547c..543a4e4d95 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -53,21 +53,19 @@ int main(int argc, char *argv[]) { * watches in. */ r = mkdir_safe_label("/run/systemd/netif", 0755, uid, gid); if (r < 0) - log_error_errno(r, "Could not create runtime directory: %m"); + log_warning_errno(r, "Could not create runtime directory: %m"); r = mkdir_safe_label("/run/systemd/netif/links", 0755, uid, gid); if (r < 0) - log_error_errno(r, "Could not create runtime directory 'links': %m"); + log_warning_errno(r, "Could not create runtime directory 'links': %m"); r = mkdir_safe_label("/run/systemd/netif/leases", 0755, uid, gid); if (r < 0) - log_error_errno(r, "Could not create runtime directory 'leases': %m"); + log_warning_errno(r, "Could not create runtime directory 'leases': %m"); r = mkdir_safe_label("/run/systemd/netif/lldp", 0755, uid, gid); if (r < 0) - log_error("Could not create runtime directory 'lldp': %s", - strerror(-r)); - + log_warning_errno(r, "Could not create runtime directory 'lldp': %m"); r = drop_privileges(uid, gid, (1ULL << CAP_NET_ADMIN) | |