From 94c92ba73c1ffc1d8efed78e30de2b65b4904a84 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Thu, 24 Aug 2017 11:30:50 +0200 Subject: add daemon/wallet log path getters --- src/libwalletqt/Wallet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libwalletqt/Wallet.cpp') diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index b79d77e5..5a71debf 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -599,6 +599,16 @@ bool Wallet::useForkRules(quint8 required_version, quint64 earlyBlocks) const } } +QString Wallet::getDaemonLogPath() const +{ + return QString::fromStdString(m_walletImpl->getDefaultDataDir()) + "/bitmonero.log"; +} + +QString Wallet::getWalletLogPath() const +{ + return QCoreApplication::applicationDirPath() + "/monero-wallet-gui.log"; +} + Wallet::Wallet(Monero::Wallet *w, QObject *parent) : QObject(parent) , m_walletImpl(w) -- cgit v1.2.3