aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-11-04 01:42:19 +0000
committerxiphon <xiphon@protonmail.com>2020-11-04 01:42:19 +0000
commit6f5bacabfdb44b1ec3d40754003e5e86e4160d78 (patch)
tree6338c5c44ca51d5830bcb66aaefb9859a0925641 /src/main
parent04429e85e6ccedee455eaf3b3b50fbecc6d9a083 (diff)
downloadmonzero-gui-6f5bacabfdb44b1ec3d40754003e5e86e4160d78.tar.gz
monzero-gui-6f5bacabfdb44b1ec3d40754003e5e86e4160d78.tar.xz
monzero-gui-6f5bacabfdb44b1ec3d40754003e5e86e4160d78.zip
Logger: print to stdout till log file path gets initialized
Diffstat (limited to 'src/main')
-rw-r--r--src/main/Logger.cpp3
-rw-r--r--src/main/main.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/Logger.cpp b/src/main/Logger.cpp
index 228679d5..62267eb6 100644
--- a/src/main/Logger.cpp
+++ b/src/main/Logger.cpp
@@ -117,13 +117,14 @@ Logger::Logger(QCoreApplication &parent, QString userDefinedLogFilePath)
c.setGlobally(el::ConfigurationType::ToFile, "false");
c.setGlobally(el::ConfigurationType::ToStandardOutput, "true");
el::Loggers::setDefaultConfigurations(c, true);
+ qInstallMessageHandler(messageHandler);
}
void Logger::resetLogFilePath(bool portable)
{
m_logFilePath = QDir::toNativeSeparators(getLogPath(m_userDefinedLogFilePath, portable));
Monero::Wallet::init(m_applicationFilePath.c_str(), "monero-wallet-gui", m_logFilePath.toStdString(), true);
- qInstallMessageHandler(messageHandler);
+ qWarning() << "Logging to" << m_logFilePath;
emit logFilePathChanged();
}
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 975b42cf..bc8f00a9 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -275,7 +275,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
if (logLevelOk && logLevel >= 0 && logLevel <= Monero::WalletManagerFactory::LogLevel_Max){
Monero::WalletManagerFactory::setLogLevel(logLevel);
}
- qWarning().noquote() << "app startd" << "(log: " + logger.logFilePath() + ")";
if (parser.isSet(verifyUpdateOption))
{