summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-12 01:05:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-12 01:05:35 +0200
commit8821a00fd5b8cb349bce66816c213573db05ec46 (patch)
tree304b1f153ffd6785ac91d31fbe1080a73d239eb6 /src/unit.c
parent302e27c89ed57f413d2a136fbe66fde32f016aed (diff)
unit: don't show ENOENT configuration file warnings for units that are not essential
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c
index 59776c33e4..e00425010a 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -672,6 +672,9 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) {
fprintf(f,
"%s\tMerged into: %s\n",
prefix, u->meta.merged_into->meta.id);
+ else if (u->meta.load_state == UNIT_FAILED)
+ fprintf(f, "%s\tLoad Error Code: %s\n", prefix, strerror(-u->meta.load_error));
+
if (u->meta.job)
job_dump(u->meta.job, f, prefix2);
@@ -756,9 +759,10 @@ int unit_load(Unit *u) {
fail:
u->meta.load_state = UNIT_FAILED;
+ u->meta.load_error = r;
unit_add_to_dbus_queue(u);
- log_notice("Failed to load configuration for %s: %s", u->meta.id, strerror(-r));
+ log_debug("Failed to load configuration for %s: %s", u->meta.id, strerror(-r));
return r;
}