Skip to content

Commit

Permalink
Merge pull request #427 from mtconnect/reduce_config_loading_log_leve…
Browse files Browse the repository at this point in the history
…l_to_debug
  • Loading branch information
wsobel authored Mar 20, 2024
2 parents 9f7ec28 + d6ff5bd commit f177492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/mtconnect/configuration/agent_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace mtconnect::configuration {
if (path)
{
// Check first if the file is in the current working directory...
LOG(info) << "Loading configuration from: " << *path;
LOG(debug) << "Loading configuration from: " << *path;
cerr << "Loading configuration from:" << *path << endl;

m_configFile = fs::canonical(*path);
Expand All @@ -188,12 +188,12 @@ namespace mtconnect::configuration {
FileFormat fmt = MTCONNECT;
if (ends_with(m_configFile.string(), "json"))
{
LOG(info) << "Parsing json configuration";
LOG(debug) << "Parsing json configuration";
fmt = JSON;
}
else if (ends_with(m_configFile.string(), "xml"))
{
LOG(info) << "Parsing xml configuration";
LOG(debug) << "Parsing xml configuration";
fmt = XML;
}
loadConfig(buffer.str(), fmt);
Expand Down
4 changes: 2 additions & 2 deletions src/mtconnect/configuration/agent_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,14 @@ namespace mtconnect {
std::error_code ec;
if (std::filesystem::exists(tst, ec) && !ec)
{
LOG(info) << "Found file '" << file << "' "
LOG(debug) << "Found file '" << file << "' "
<< " in path " << path;
auto con {std::filesystem::canonical(tst)};
return con;
}
else
{
LOG(info) << "Cannot find file '" << file << "' "
LOG(debug) << "Cannot find file '" << file << "' "
<< " in path " << path;
}
}
Expand Down

0 comments on commit f177492

Please sign in to comment.