Merge pull request #463

d589ab4 send all debug output to easylogger (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-02-17 21:43:53 +02:00
commit 57fa9830b6
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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();
}