Disable geth.log in release builds. Fixes #4782
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -216,10 +216,10 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||
|
||||
JSONObject jsonConfig = new JSONObject(config);
|
||||
|
||||
String gethLogFilePath = prepareLogsFile();
|
||||
boolean logsEnabled = (gethLogFilePath != null) && !TextUtils.isEmpty(this.logLevel);
|
||||
String gethLogFilePath = TextUtils.isEmpty(this.logLevel) ? null : prepareLogsFile();
|
||||
boolean logsEnabled = (gethLogFilePath != null);
|
||||
|
||||
jsonConfig.put("LogEnabled", (gethLogFilePath != null && logsEnabled));
|
||||
jsonConfig.put("LogEnabled", logsEnabled);
|
||||
jsonConfig.put("LogFile", gethLogFilePath);
|
||||
jsonConfig.put("LogLevel", TextUtils.isEmpty(this.logLevel) ? "ERROR" : this.logLevel.toUpperCase());
|
||||
jsonConfig.put("DataDir", dataDir);
|
||||
|
||||
Reference in New Issue
Block a user