vcl/source/app/UserResourceScanner.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
New commits: commit 9cde2b8b73073b5f8e12476986d07094deefe977 Author: Tomaž Vajngerl <[email protected]> AuthorDate: Tue Nov 25 00:15:31 2025 +0900 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Nov 25 09:55:26 2025 +0100 vcl: change logging - warn to info in UserResourceScanner To not log as warning situations that are normal (missing user folder, which is not mandatory). Change-Id: I4f5917580e57292508ede226ce31582a611a5b6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194452 Reviewed-by: Tomaž Vajngerl <[email protected]> Tested-by: Jenkins Code-Style: Tomaž Vajngerl <[email protected]> diff --git a/vcl/source/app/UserResourceScanner.cxx b/vcl/source/app/UserResourceScanner.cxx index 353004712c44..9d4bf55ea19d 100644 --- a/vcl/source/app/UserResourceScanner.cxx +++ b/vcl/source/app/UserResourceScanner.cxx @@ -28,7 +28,7 @@ OUString convertToAbsolutePath(const OUString& path) osl::FileBase::RC rc = resolver.fetchFileStatus(path); if (rc != osl::FileBase::E_None) { - SAL_WARN("vcl.app", "Could not resolve path '" << path << "' to search for icon themes."); + SAL_INFO("vcl.app", "Could not resolve path '" << path << "' to search for icon themes."); if (rc == osl::FileBase::E_MULTIHOP) { throw std::runtime_error("Provided a recursive symlink to an icon theme directory that " @@ -48,13 +48,17 @@ bool readFileStatus(osl::FileStatus& status, const OUString& file) osl::FileBase::RC retvalGet = osl::DirectoryItem::get(file, dirItem); if (retvalGet != osl::FileBase::E_None) { - SAL_WARN("vcl.app", "Could not determine status for file '" << file << "'."); + if (retvalGet == osl::FileBase::E_NOENT) + SAL_INFO("vcl.app", "Directory doesn't exist '" << file << "'."); + else + SAL_INFO("vcl.app", "Could not determine status for file '" + << file << "' Return code: '" << retvalGet << "'."); return false; } osl::FileBase::RC retvalStatus = dirItem.getFileStatus(status); if (retvalStatus != osl::FileBase::E_None) { - SAL_WARN("vcl.app", "Could not determine status for file '" << file << "'."); + SAL_INFO("vcl.app", "Could not determine status for file '" << file << "'."); return false; } return true; @@ -95,7 +99,7 @@ void UserResourceScanner::addPaths(std::u16string_view aPathString) if (aResourcePaths.empty()) { - SAL_WARN("vcl.app", + SAL_INFO("vcl.app", "Could not find any file in the provided directory ('" << path << "'."); continue; }
