aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-11-06 05:11:08 -0800
committerAlexander Blair <snipa@jagtech.io>2020-11-06 05:11:09 -0800
commit3e016477441acdd7e30e0b21694801a4d464f1f7 (patch)
treea7974e9acd80a2f6ea678a5b758853997eed3c43
parentf491b4110096279bcfddf31b7d0ee75e008fb8c5 (diff)
parent6f5bacabfdb44b1ec3d40754003e5e86e4160d78 (diff)
downloadmonzero-gui-3e016477441acdd7e30e0b21694801a4d464f1f7.tar.gz
monzero-gui-3e016477441acdd7e30e0b21694801a4d464f1f7.tar.xz
monzero-gui-3e016477441acdd7e30e0b21694801a4d464f1f7.zip
Merge pull request #3209
6f5bacab Logger: print to stdout till log file path gets initialized (xiphon)
-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 180ac0c9..8a619b84 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -279,7 +279,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))
{