Merge pull request #3209

6f5bacab Logger: print to stdout till log file path gets initialized (xiphon)
This commit is contained in:
Alexander Blair 2020-11-06 05:11:08 -08:00
commit 3e01647744
No known key found for this signature in database
GPG key ID: C64552D877C32479
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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))
{