From 65e3a54857be020d3d0d3b0f293e9d71e6eb126e Mon Sep 17 00:00:00 2001 From: Aron Budea Date: Fri, 21 Jan 2022 18:04:43 +0100 Subject: [PATCH] wsd: Adjust log levels A non-writable path isn't an error in itself. The reason why the service tried to write the systemplate, and the perf implications is worth reporting even on default log level. Signed-off-by: Aron Budea Change-Id: Ie168875ceb4e501291676a5aa4ddc21b88c5761f --- common/FileUtil.cpp | 2 +- common/JailUtil.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/FileUtil.cpp b/common/FileUtil.cpp index aa9e17aa3..0803db0d4 100644 --- a/common/FileUtil.cpp +++ b/common/FileUtil.cpp @@ -321,7 +321,7 @@ namespace FileUtil if (access(path, W_OK) == 0) return true; - LOG_ERR("Cannot access path [" << path << "]: " << strerror(errno)); + LOG_INF("No write access to path [" << path << "]: " << strerror(errno)); return false; } diff --git a/common/JailUtil.cpp b/common/JailUtil.cpp index b334a1aa1..c4044b519 100644 --- a/common/JailUtil.cpp +++ b/common/JailUtil.cpp @@ -369,7 +369,7 @@ bool updateDynamicFilesImpl(const std::string& sysTemplate) { disableBindMounting(); // We can't mount from incomplete systemplate that can't be updated. LinkDynamicFiles = false; - LOG_INF("The systemplate directory [" + LOG_WRN("The systemplate directory [" << sysTemplate << "] is read-only, and at least [" << dstFilename << "] is out-of-date. Will have to copy sysTemplate to jails. To restore " "optimal performance, make sure the files in ["