Skip to content

Commit

Permalink
TorService: Remove log file truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Apr 15, 2024
1 parent 2a66d72 commit fb71dca
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions network/tor/tor/src/main/java/bisq/tor/TorService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import lombok.extern.slf4j.Slf4j;
import net.freehaven.tor.control.PasswordDigest;

import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
Expand Down Expand Up @@ -79,15 +78,6 @@ public CompletableFuture<Boolean> initialize() {

var nativeTorProcess = new NativeTorProcess(torDataDirPath);
torProcess = Optional.of(nativeTorProcess);

File debugLogFile = torDataDirPath.resolve("debug.log").toFile();
if (debugLogFile.exists()) {
boolean isSuccess = debugLogFile.delete();
if (!isSuccess) {
throw new IllegalStateException("Can't delete old debug.log file");
}
}

nativeTorProcess.start();

Path controlDirPath = torDataDirPath.resolve(NativeTorProcess.CONTROL_DIR_NAME);
Expand Down

0 comments on commit fb71dca

Please sign in to comment.