From: Lennart Poettering Date: Fri, 20 Apr 2012 10:39:09 +0000 (+0200) Subject: mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails X-Git-Tag: v183~255 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71f737d2de635d4ac6183face7e9c8b7981631ab;p=thirdparty%2Fsystemd.git mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails --- diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 961773b1e9f..d902211ead7 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -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; }