[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:
Pedro Pombeiro 2017-12-27 21:01:31 +01:00
parent b87a52e2d4
commit 9631552251
No known key found for this signature in database
GPG Key ID: C4A24185B2AA48A1
2 changed files with 0 additions and 6 deletions

View File

@ -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();

View File

@ -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];