Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Commit

Permalink
Turn logging off in session constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 10, 2015
1 parent a70abe4 commit 739d70d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/torrenttunes/client/LibtorrentEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,23 @@ private LibtorrentEngine() {

Pair<Integer, Integer> prange = new Pair<Integer, Integer>(49154, 65535);
String iface = "0.0.0.0";
session = new Session(new Fingerprint(), prange, iface, defaultRouters(), true);


if (Main.log.getLevel().equals(Level.DEBUG)) {
// Create a session stats file with headers
createSessionStatsFile();
default_storage.disk_write_access_log(true);
libtorrent.set_utp_stream_logging(true);
addDefaultSessionAlerts();
session = new Session(new Fingerprint(), prange, iface, defaultRouters(), true);
} else {
session = new Session(new Fingerprint(), prange, iface, defaultRouters(), false);
}


settings = new SettingsPack();




settings.setActiveDownloads(10);
settings.setActiveSeeds(999999);
settings.setInteger(int_types.active_limit.swigValue(), 999999);
Expand Down

0 comments on commit 739d70d

Please sign in to comment.