1
mirror of https://github.com/monero-project/monero-gui synced 2025-01-10 17:26:24 +01:00

send all debug output to easylogger

This commit is contained in:
Jaquee 2017-02-05 20:15:47 +01:00
parent fdc71d2b18
commit d589ab4058
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

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