Skip to content

Commit

Permalink
Use lombok log API
Browse files Browse the repository at this point in the history
  • Loading branch information
freimair committed Nov 25, 2018
1 parent 3a44b36 commit e4568a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions p2p/src/main/java/bisq/network/p2p/network/NewTor.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
import org.berndpruenster.netlayer.tor.Tor;
import org.berndpruenster.netlayer.tor.TorCtlException;
import org.berndpruenster.netlayer.tor.Torrc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import lombok.extern.slf4j.Slf4j;

/**
* This class creates a brand new instance of the Tor onion router.
Expand All @@ -44,6 +44,7 @@
* @author Florian Reimair
*
*/
@Slf4j
public class NewTor extends TorMode {

/**
Expand All @@ -55,8 +56,6 @@ public class NewTor extends TorMode {
*/
private static final String HIDDEN_SERVICE_DIRECTORY = "hiddenservice";

private static final Logger log = LoggerFactory.getLogger(NewTor.class);

private final String torrcFile;
private final String torrcOptions;
private final Collection<String> bridgeEntries;
Expand Down
6 changes: 3 additions & 3 deletions p2p/src/main/java/bisq/network/p2p/network/RunningTor.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import org.berndpruenster.netlayer.tor.ExternalTor;
import org.berndpruenster.netlayer.tor.Tor;
import org.berndpruenster.netlayer.tor.TorCtlException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import lombok.extern.slf4j.Slf4j;

/**
* This class creates a brand new instance of the Tor onion router.
Expand All @@ -37,10 +37,10 @@
* @author Florian Reimair
*
*/
@Slf4j
public class RunningTor extends TorMode {

private static final String EXTERNAL_TOR_HIDDEN_SERVICE = "externalTorHiddenService";
private static final Logger log = LoggerFactory.getLogger(RunningTor.class);
private final int controlPort;
private final String password;
private final File cookieFile;
Expand Down

0 comments on commit e4568a3

Please sign in to comment.