mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Merge pull request #3209
6f5bacab
Logger: print to stdout till log file path gets initialized (xiphon)
This commit is contained in:
commit
3e01647744
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue