summary refs log tree commit diff
path: root/src/main.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-14 02:28:35 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-14 02:28:35 +0300
commit8e9d210a2a2136d1d517645b2b2412b15da09360 (patch)
treeb58bd7b236e9759bbc4b310ebffb0687f89db47d /src/main.cc
parentAdd support for sending encrypted messages (diff)
downloadnheko-8e9d210a2a2136d1d517645b2b2412b15da09360.tar.xz
Rename the log namespace to avoid symbol clash with the math function
- Patch the olm repo with a CMakeLists.txt file
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc

index 0a127962..24524c2c 100644 --- a/src/main.cc +++ b/src/main.cc
@@ -127,9 +127,9 @@ main(int argc, char *argv[]) createCacheDirectory(); try { - log::init(QString("%1/nheko.log") - .arg(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)) - .toStdString()); + nhlog::init(QString("%1/nheko.log") + .arg(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)) + .toStdString()); } catch (const spdlog::spdlog_ex &ex) { std::cout << "Log initialization failed: " << ex.what() << std::endl; std::exit(1); @@ -171,7 +171,7 @@ main(int argc, char *argv[]) } }); - log::main()->info("starting nheko {}", nheko::version); + nhlog::ui()->info("starting nheko {}", nheko::version); return app.exec(); }