[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);
|
jsonConfig.put("KeyStoreDir", newKeystoreDir);
|
||||||
String gethLogPath = dataFolder + "/" + gethLogFileName;
|
String gethLogPath = dataFolder + "/" + gethLogFileName;
|
||||||
File logFile = new File(gethLogPath);
|
File logFile = new File(gethLogPath);
|
||||||
if (logFile.exists()) {
|
|
||||||
logFile.delete();
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
logFile.setReadable(true);
|
logFile.setReadable(true);
|
||||||
File parent = logFile.getParentFile();
|
File parent = logFile.getParentFile();
|
||||||
|
|
|
@ -211,9 +211,6 @@ RCT_EXPORT_METHOD(startNode:(NSString *)configString) {
|
||||||
}
|
}
|
||||||
NSString *resultingConfig = [resultingConfigJson bv_jsonStringWithPrettyPrint:NO];
|
NSString *resultingConfig = [resultingConfigJson bv_jsonStringWithPrettyPrint:NO];
|
||||||
NSLog(@"node config %@", resultingConfig);
|
NSLog(@"node config %@", resultingConfig);
|
||||||
if([fileManager fileExistsAtPath:logUrl.path]) {
|
|
||||||
[fileManager removeItemAtPath:logUrl.path error:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(![fileManager fileExistsAtPath:networkDirUrl.path]) {
|
if(![fileManager fileExistsAtPath:networkDirUrl.path]) {
|
||||||
[fileManager createDirectoryAtPath:networkDirUrl.path withIntermediateDirectories:YES attributes:nil error:nil];
|
[fileManager createDirectoryAtPath:networkDirUrl.path withIntermediateDirectories:YES attributes:nil error:nil];
|
||||||
|
|
Loading…
Reference in New Issue