From d589ab405868d87cf3c2aa64f47819c161568e19 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 5 Feb 2017 20:15:47 +0100 Subject: [PATCH] send all debug output to easylogger --- main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.cpp b/main.cpp index 63740cbf..0b6aa297 100644 --- a/main.cpp +++ b/main.cpp @@ -49,15 +49,23 @@ #include "model/TransactionHistorySortFilterModel.h" #include "AddressBook.h" #include "model/AddressBookModel.h" +#include "wallet/wallet2_api.h" // IOS exclusions #ifndef Q_OS_IOS #include "daemon/DaemonManager.h" #endif +void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) +{ + // Send all message types to logger + Monero::Wallet::debug(msg.toStdString()); +} + int main(int argc, char *argv[]) { + qInstallMessageHandler(messageHandler); QApplication app(argc, argv); qDebug() << "app startd"; @@ -195,3 +203,4 @@ int main(int argc, char *argv[]) return app.exec(); } +