diff --git a/src/api-objects/src/apikeysprovider.cpp b/src/api-objects/src/apikeysprovider.cpp index faadcee6..743fce0b 100644 --- a/src/api-objects/src/apikeysprovider.cpp +++ b/src/api-objects/src/apikeysprovider.cpp @@ -27,10 +27,10 @@ std::string_view GetSecretFileName(settings::RunMode runMode) { APIKeysProvider::APIKeysProvider(std::string_view dataDir, const ExchangeSecretsInfo& exchangeSecretsInfo, settings::RunMode runMode) : _apiKeysMap(ParseAPIKeys(dataDir, exchangeSecretsInfo, runMode)) { - if (log::get_level() <= log::level::info) { + if (log::get_level() <= log::level::debug) { string foundKeysStr = str(); if (!foundKeysStr.empty()) { - log::info("Loaded keys {}", foundKeysStr); + log::debug("Loaded keys {}", foundKeysStr); } } } diff --git a/src/api/common/src/cryptowatchapi.cpp b/src/api/common/src/cryptowatchapi.cpp index 3747a707..81631a54 100644 --- a/src/api/common/src/cryptowatchapi.cpp +++ b/src/api/common/src/cryptowatchapi.cpp @@ -48,10 +48,10 @@ CryptowatchAPI::CryptowatchAPI(const CoincenterInfo& config, settings::RunMode r Fiats fiats; fiats.reserve(static_cast(fiatsFile.size())); for (json& val : fiatsFile) { - log::debug("Reading fiat {} from cache file", val.get()); + log::trace("Reading fiat {} from cache file", val.get()); fiats.emplace_hint(fiats.end(), std::move(val.get_ref())); } - log::info("Loaded {} fiats from cache file", fiats.size()); + log::debug("Loaded {} fiats from cache file", fiats.size()); _fiatsCache.set(std::move(fiats), TimePoint(std::chrono::seconds(timeEpoch))); } } diff --git a/src/monitoring/src/monitoringinfo.cpp b/src/monitoring/src/monitoringinfo.cpp index 48e98d4b..b8cd3505 100644 --- a/src/monitoring/src/monitoringinfo.cpp +++ b/src/monitoring/src/monitoringinfo.cpp @@ -1,6 +1,6 @@ #include "monitoringinfo.hpp" -#include "cct_exception.hpp" +#include "cct_invalid_argument_exception.hpp" #include "cct_log.hpp" namespace cct { @@ -12,12 +12,12 @@ MonitoringInfo::MonitoringInfo(bool useMonitoring, std::string_view jobName, std _password(password), _port(useMonitoring ? static_cast(port) : 0U) { if (port < 0 || port > static_cast(std::numeric_limits::max())) { - throw exception("Invalid port value {}", port); + throw invalid_argument("Invalid port value {}", port); } if (useMonitoring) { log::info("Monitoring config - Export to {}:{} user '{}', job name {}", address, port, username, jobName); } else { - log::info("Monitoring disabled"); + log::debug("Monitoring disabled"); } } } // namespace cct \ No newline at end of file