diff options
| author | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-29 13:11:47 +0200 |
|---|---|---|
| committer | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-29 14:26:34 +0200 |
| commit | 607b1f8ede81450a3a6a19f4fd1570b1540727c8 (patch) | |
| tree | 6da894dc77912f9e8ce7df1e9acfb75f2389f661 /main.cpp | |
| parent | ff6ce6294b561a6f15769a8e7a8270d57d02f8de (diff) | |
| download | monzero-gui-607b1f8ede81450a3a6a19f4fd1570b1540727c8.tar.gz monzero-gui-607b1f8ede81450a3a6a19f4fd1570b1540727c8.tar.xz monzero-gui-607b1f8ede81450a3a6a19f4fd1570b1540727c8.zip | |
logging: initial log level set by ENV var
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -140,7 +140,12 @@ int main(int argc, char *argv[]) // loglevel is configured in main.qml. Anything lower than - // qWarning is not shown here. + // qWarning is not shown here unless MONERO_LOG_LEVEL env var is set + bool logLevelOk; + int logLevel = qEnvironmentVariableIntValue("MONERO_LOG_LEVEL", &logLevelOk); + if (logLevelOk && logLevel >= 0 && logLevel <= Monero::WalletManagerFactory::LogLevel_Max){ + Monero::WalletManagerFactory::setLogLevel(logLevel); + } qWarning().noquote() << "app startd" << "(log: " + logPath + ")"; // screen settings |
