]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
load-fragment: downgrade log messages we ignore to LOG_WARNING
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Jul 2020 15:44:03 +0000 (17:44 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 16 Jul 2020 05:58:05 +0000 (14:58 +0900)
We typically don't log above LOG_WARNING about issues we then go on to
ignore. Do so here, too

src/core/load-fragment.c

index 526ed210b34e7cd477f290ccc04b4cbe57dc305f..3036aa8ba4432c934fe36f0d9f68a7c574dbc8da 100644 (file)
@@ -4218,7 +4218,7 @@ int config_parse_exec_directories(
 
                 r = unit_full_printf(u, word, &k);
                 if (r < 0) {
-                        log_syntax(unit, LOG_ERR, filename, line, r,
+                        log_syntax(unit, LOG_WARNING, filename, line, r,
                                    "Failed to resolve unit specifiers in \"%s\", ignoring: %m", word);
                         continue;
                 }
@@ -4228,7 +4228,7 @@ int config_parse_exec_directories(
                         continue;
 
                 if (path_startswith(k, "private")) {
-                        log_syntax(unit, LOG_ERR, filename, line, 0,
+                        log_syntax(unit, LOG_WARNING, filename, line, 0,
                                    "%s= path can't be 'private', ignoring assignment: %s", lvalue, word);
                         continue;
                 }