summary refs log tree commit diff
path: root/src/Logging.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-15 23:28:04 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-15 23:28:04 +0200
commitdd1dca375198732ea3ad02e7f1cb24b16c393e04 (patch)
tree8a79a475681dbc4c3501866a6d00ec0d2c253352 /src/Logging.cpp
parentCache decrypted events (diff)
downloadnheko-dd1dca375198732ea3ad02e7f1cb24b16c393e04.tar.xz
Add --debug switch
Diffstat (limited to 'src/Logging.cpp')
-rw-r--r--src/Logging.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp
index b63c2e5a..4ea6bae2 100644
--- a/src/Logging.cpp
+++ b/src/Logging.cpp
@@ -81,10 +81,12 @@ init(const std::string &file_path)
           std::make_shared<spdlog::logger>("crypto", std::begin(sinks), std::end(sinks));
         qml_logger = std::make_shared<spdlog::logger>("qml", std::begin(sinks), std::end(sinks));
 
-        if (nheko::enable_debug_log) {
+        if (nheko::enable_debug_log || enable_debug_log_from_commandline) {
                 db_logger->set_level(spdlog::level::trace);
                 ui_logger->set_level(spdlog::level::trace);
                 crypto_logger->set_level(spdlog::level::trace);
+                net_logger->set_level(spdlog::level::trace);
+                qml_logger->set_level(spdlog::level::trace);
         }
 
         qInstallMessageHandler(qmlMessageHandler);