]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: downgrade a log message from error to warning
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Nov 2017 10:13:36 +0000 (11:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2017 09:49:15 +0000 (10:49 +0100)
Messages that do not indicate a failing operation, but where we continue
operation should be at LOG_WARN, not at LOG_ERR.

src/core/load-dropin.c

index c98ab4164f588a60c7ee2d4083f4d04e59195520..062060a3b370a62d611f5f9d5dd2ba952ba87db6 100644 (file)
@@ -117,8 +117,8 @@ static int process_deps(Unit *u, UnitDependency dependency, const char *dir_suff
 
                 r = unit_add_dependency_by_name(u, dependency, entry, *p, true, UNIT_DEPENDENCY_FILE);
                 if (r < 0)
-                        log_unit_error_errno(u, r, "cannot add %s dependency on %s, ignoring: %m",
-                                             unit_dependency_to_string(dependency), entry);
+                        log_unit_warning_errno(u, r, "Cannot add %s dependency on %s, ignoring: %m",
+                                               unit_dependency_to_string(dependency), entry);
         }
 
         return 0;