From 8e9d210a2a2136d1d517645b2b2412b15da09360 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 14 Jun 2018 02:28:35 +0300 Subject: Rename the log namespace to avoid symbol clash with the math function - Patch the olm repo with a CMakeLists.txt file --- src/Logging.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Logging.cpp') diff --git a/src/Logging.cpp b/src/Logging.cpp index 77e61e09..bccbe389 100644 --- a/src/Logging.cpp +++ b/src/Logging.cpp @@ -7,13 +7,13 @@ namespace { std::shared_ptr db_logger = nullptr; std::shared_ptr net_logger = nullptr; std::shared_ptr crypto_logger = nullptr; -std::shared_ptr main_logger = nullptr; +std::shared_ptr ui_logger = nullptr; constexpr auto MAX_FILE_SIZE = 1024 * 1024 * 6; constexpr auto MAX_LOG_FILES = 3; } -namespace log { +namespace nhlog { void init(const std::string &file_path) { @@ -26,17 +26,17 @@ init(const std::string &file_path) sinks.push_back(file_sink); sinks.push_back(console_sink); - net_logger = std::make_shared("net", std::begin(sinks), std::end(sinks)); - main_logger = std::make_shared("main", std::begin(sinks), std::end(sinks)); - db_logger = std::make_shared("db", std::begin(sinks), std::end(sinks)); + net_logger = std::make_shared("net", std::begin(sinks), std::end(sinks)); + ui_logger = std::make_shared("ui", std::begin(sinks), std::end(sinks)); + db_logger = std::make_shared("db", std::begin(sinks), std::end(sinks)); crypto_logger = std::make_shared("crypto", std::begin(sinks), std::end(sinks)); } std::shared_ptr -main() +ui() { - return main_logger; + return ui_logger; } std::shared_ptr -- cgit 1.5.1