diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-02-05 20:15:47 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-16 07:48:07 +0100 |
| commit | d589ab405868d87cf3c2aa64f47819c161568e19 (patch) | |
| tree | 1dbb2374a181e4677b2b4d2e93b35186e1720d43 | |
| parent | fdc71d2b187743f03e4fea27324a5074fd798634 (diff) | |
| download | monzero-gui-d589ab405868d87cf3c2aa64f47819c161568e19.tar.gz monzero-gui-d589ab405868d87cf3c2aa64f47819c161568e19.tar.xz monzero-gui-d589ab405868d87cf3c2aa64f47819c161568e19.zip | |
send all debug output to easylogger
| -rw-r--r-- | main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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(); } + |
