From 5c9f777e5d3bb7ef639685f8464ecc6ced2c2a0f Mon Sep 17 00:00:00 2001 From: Will Sobel Date: Wed, 13 Mar 2024 10:12:00 -0400 Subject: [PATCH] Reduced log level for config file search to debug. Issue #417 --- src/mtconnect/configuration/agent_config.cpp | 6 +++--- src/mtconnect/configuration/agent_config.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mtconnect/configuration/agent_config.cpp b/src/mtconnect/configuration/agent_config.cpp index 00a7c523..6f8ccf90 100644 --- a/src/mtconnect/configuration/agent_config.cpp +++ b/src/mtconnect/configuration/agent_config.cpp @@ -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); @@ -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); diff --git a/src/mtconnect/configuration/agent_config.hpp b/src/mtconnect/configuration/agent_config.hpp index 6469d1eb..175d017a 100644 --- a/src/mtconnect/configuration/agent_config.hpp +++ b/src/mtconnect/configuration/agent_config.hpp @@ -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; } }