Skip to content

Commit

Permalink
chore: don't log warning on nonexistent *.custom.yaml file (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Jun 18, 2024
1 parent 7e3d286 commit af97049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rime/config/config_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 << "'.";
Expand Down

0 comments on commit af97049

Please sign in to comment.