]> err.no Git - systemd/commitdiff
mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Apr 2012 10:39:09 +0000 (12:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Apr 2012 10:40:02 +0000 (12:40 +0200)
src/core/mount-setup.c

index 961773b1e9f4d44a1460fcf186bcc93a51ead821..d902211ead787d179435f3e903e32ee427edfddd 100644 (file)
@@ -131,7 +131,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
                   p->type,
                   p->flags,
                   p->options) < 0) {
-                log_error("Failed to mount %s: %s", p->where, strerror(errno));
+                log_full(p->fatal ? LOG_ERR : LOG_DEBUG, "Failed to mount %s: %s", p->where, strerror(errno));
                 return p->fatal ? -errno : 0;
         }