diff mbox series

[OpenWrt-Devel,procd,openwrt-19.07] instance: turn error into debug message for missing ujail binary

Message ID 20200307123744.13026-1-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series [OpenWrt-Devel,procd,openwrt-19.07] instance: turn error into debug message for missing ujail binary | expand

Commit Message

Petr Štetiar March 7, 2020, 12:37 p.m. UTC
Since commit 557f11b3a20f ("instance: provide error feedback if ujail
binary is missing") worrying log spam of the form "unable to find
/sbin/jail ..." may be encountered.

This corresponds with the changes done in the upstream commit
bcb86554f1b4 ("instance: add 'requirejail' attribute").

Fixes: 557f11b3a20f ("instance: provide error feedback if ujail binary is missing")
Ref: https://forum.openwrt.org/t/openwrt-19-07-2-service-release/57066
Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 service/instance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/service/instance.c b/service/instance.c
index e5615d5c2f02..35d398c360b6 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -800,7 +800,7 @@  instance_jail_parse(struct service_instance *in, struct blob_attr *attr)
 
 	r = stat(UJAIL_BIN_PATH, &s);
 	if (r < 0) {
-		ERROR("unable to find %s: %m (%d)\n", UJAIL_BIN_PATH, r);
+		DEBUG(2, "unable to find %s: %m (%d)\n", UJAIL_BIN_PATH, r);
 		return 0;
 	}