From af97049207e82288eedbf30d2300c85c39468e6e Mon Sep 17 00:00:00 2001 From: fxliang Date: Tue, 18 Jun 2024 19:54:14 +0800 Subject: [PATCH] chore: don't log warning on nonexistent *.custom.yaml file (#889) --- src/rime/config/config_data.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rime/config/config_data.cc b/src/rime/config/config_data.cc index aba321a9e7..e3e73dbd05 100644 --- a/src/rime/config/config_data.cc +++ b/src/rime/config/config_data.cc @@ -66,7 +66,8 @@ bool ConfigData::LoadFromFile(const path& file_path, ConfigCompiler* compiler) { modified_ = false; root.reset(); if (!std::filesystem::exists(file_path)) { - LOG(WARNING) << "nonexistent config file '" << file_path << "'."; + if (!boost::ends_with(file_path.u8string(), ".custom.yaml")) + LOG(WARNING) << "nonexistent config file '" << file_path << "'."; return false; } LOG(INFO) << "loading config file '" << file_path << "'.";