mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
[ref status-im/status-go#229] Do not delete the geth.log file at startup. Allow the new log rotate logic in status geth to handle that
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
parent
b87a52e2d4
commit
9631552251
@ -197,9 +197,6 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||
jsonConfig.put("KeyStoreDir", newKeystoreDir);
|
||||
String gethLogPath = dataFolder + "/" + gethLogFileName;
|
||||
File logFile = new File(gethLogPath);
|
||||
if (logFile.exists()) {
|
||||
logFile.delete();
|
||||
}
|
||||
try {
|
||||
logFile.setReadable(true);
|
||||
File parent = logFile.getParentFile();
|
||||
|
@ -211,9 +211,6 @@ RCT_EXPORT_METHOD(startNode:(NSString *)configString) {
|
||||
}
|
||||
NSString *resultingConfig = [resultingConfigJson bv_jsonStringWithPrettyPrint:NO];
|
||||
NSLog(@"node config %@", resultingConfig);
|
||||
if([fileManager fileExistsAtPath:logUrl.path]) {
|
||||
[fileManager removeItemAtPath:logUrl.path error:nil];
|
||||
}
|
||||
|
||||
if(![fileManager fileExistsAtPath:networkDirUrl.path]) {
|
||||
[fileManager createDirectoryAtPath:networkDirUrl.path withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
|
Loading…
x
Reference in New Issue
Block a user