From 40f04cde5bd15eb63094a6a7dc4d061fc4051939 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 10 Sep 2020 14:07:56 +0900 Subject: [PATCH] xdg-autostart-generator: downgrade error level when the error will be ignored --- src/xdg-autostart-generator/xdg-autostart-service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index 80643236d5..c6f39f25bd 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -166,7 +166,7 @@ static int xdg_config_parse_string( /* XDG does not allow duplicate definitions. */ if (*out) { - log_syntax(unit, LOG_ERR, filename, line, 0, "Key %s was defined multiple times, ignoring.", lvalue); + log_syntax(unit, LOG_WARNING, filename, line, 0, "Key %s was defined multiple times, ignoring.", lvalue); return 0; } @@ -238,7 +238,7 @@ static int xdg_config_parse_strv( /* XDG does not allow duplicate definitions. */ if (*ret_sv) { - log_syntax(unit, LOG_ERR, filename, line, 0, "Key %s was already defined, ignoring.", lvalue); + log_syntax(unit, LOG_WARNING, filename, line, 0, "Key %s was already defined, ignoring.", lvalue); return 0; } @@ -256,7 +256,7 @@ static int xdg_config_parse_strv( /* Move forward, and ensure it is a valid escape. */ end++; if (!strchr("sntr\\;", *end)) { - log_syntax(unit, LOG_ERR, filename, line, 0, "Undefined escape sequence \\%c.", *end); + log_syntax(unit, LOG_WARNING, filename, line, 0, "Undefined escape sequence \\%c.", *end); return 0; } continue;