summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmut Tezduyar Lindskog <umuttl@axis.com>2015-11-10 15:47:39 +0100
committerUmut Tezduyar Lindskog <umuttl@axis.com>2015-11-16 11:47:23 +0100
commit287a0de4ad4d2f7510f914a5f1be65430df8561c (patch)
treebc77e62507ce00a14b0a4674d8a2e965b9cde821
parent7ad8eb8d84a53a1dc55411ae1087bd9a2f3b58bf (diff)
downgrade warning if setting preset failed
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 33529c3e76..fcfd6d375d 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1662,7 +1662,7 @@ int main(int argc, char *argv[]) {
if (empty_etc) {
r = unit_file_preset_all(UNIT_FILE_SYSTEM, false, NULL, UNIT_FILE_PRESET_ENABLE_ONLY, false, NULL, 0);
if (r < 0)
- log_warning_errno(r, "Failed to populate /etc with preset unit settings, ignoring: %m");
+ log_full_errno(r == -EEXIST ? LOG_NOTICE : LOG_WARNING, r, "Failed to populate /etc with preset unit settings, ignoring: %m");
else
log_info("Populated /etc with preset unit settings.");
}