From 07c99ff46c883274b7fa9a68c5d5554ae69158bf Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 5 Jun 2019 08:18:31 +0300 Subject: [PATCH] Log tidy --- components/common/cpp/include/ftl/configurable.hpp | 2 +- components/common/cpp/src/configuration.cpp | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/common/cpp/include/ftl/configurable.hpp b/components/common/cpp/include/ftl/configurable.hpp index a9fe18e23..210184e76 100644 --- a/components/common/cpp/include/ftl/configurable.hpp +++ b/components/common/cpp/include/ftl/configurable.hpp @@ -132,7 +132,7 @@ std::optional<T> ftl::Configurable::get(const std::string &name) { std::string res_uri = config_["$ref"].get<std::string>()+"/"+name; auto &r = ftl::config::resolve(res_uri); - LOG(INFO) << "GET Resolve: " << res_uri << " = " << r; + DLOG(1) << "GET: " << res_uri << " = " << r; try { return r.get<T>(); diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp index d34ff024a..f21eb0262 100644 --- a/components/common/cpp/src/configuration.cpp +++ b/components/common/cpp/src/configuration.cpp @@ -208,7 +208,6 @@ json_t &ftl::config::resolve(const std::string &puri) { ftl::URI uri(uri_str); if (uri.isValid()) { std::string u = uri.getBaseURI(); - LOG(INFO) << "Resolve URI: " << u; auto ix = config_index.find(u); if (ix == config_index.end()) { LOG(FATAL) << "Cannot find resource: " << u; @@ -393,13 +392,12 @@ static void signalIntHandler( int signum ) { } Configurable *ftl::config::configure(int argc, char **argv, const std::string &root) { - loguru::init(argc, argv, "--verbosity"); - argc--; - argv++; - loguru::g_preamble_date = false; loguru::g_preamble_uptime = false; loguru::g_preamble_thread = false; + loguru::init(argc, argv, "--verbosity"); + argc--; + argv++; #ifndef WIN32 signal(SIGINT,signalIntHandler); -- GitLab