From 96ad056ea59226fd1c0cf9b328ff2b982fdc33c4 Mon Sep 17 00:00:00 2001 From: Skrubby Skrub In A Shrub <87662196+SkrubbySkrubInAShrub@users.noreply.github.com> Date: Thu, 4 Jun 2026 22:48:58 +0200 Subject: [PATCH] chore: suppress logging --- src/Features/CSEditor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Features/CSEditor.cpp b/src/Features/CSEditor.cpp index 98e2368e50..8fd88bccac 100644 --- a/src/Features/CSEditor.cpp +++ b/src/Features/CSEditor.cpp @@ -46,7 +46,10 @@ bool CSEditor::HasWidgetJsonFiles() std::error_code ec; const bool isDirectory = std::filesystem::is_directory(widgetSettingsPath, ec); if (ec) { - logger::warn("[CSEditor] Failed to inspect widget settings path '{}': {}", widgetSettingsPath.string(), ec.message()); + // A missing folder is the normal case (the user simply has no saved + // widgets for this category), so don't treat it as a warning. + if (ec != std::errc::no_such_file_or_directory) + logger::warn("[CSEditor] Failed to inspect widget settings path '{}': {}", widgetSettingsPath.string(), ec.message()); continue; } if (!isDirectory) @@ -60,6 +63,7 @@ bool CSEditor::HasWidgetJsonFiles() continue; } if (isRegularFile && _stricmp(it->path().extension().string().c_str(), kJsonExtension) == 0) { + logger::info("[CSEditor] Detected widget settings in '{}'", widgetSettingsPath.string()); s_hasWidgetJsonFiles = true; s_checkedWidgetJsonFiles = true; return true;