Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed log flush

  • Loading branch information...
commit 6f3ef7b3468dc493b9d1a73b01f5dc0b8aed3b1a 1 parent fa9c8eb
mic authored
4 blogracy-web/src/main/java/net/blogracy/controller/DistributedHashTable.java
View
@@ -78,7 +78,6 @@
this.id = id;
this.start = System.currentTimeMillis();
log.info("Lookup req: " + id);
- log.getHandlers()[0].flush();
}
@Override
@@ -87,7 +86,6 @@ public void onMessage(Message response) {
String msgText = ((TextMessage) response).getText();
log.info("Lookup ans: " + id + " @ "
+ (System.currentTimeMillis() - start));
- log.getHandlers()[0].flush();
JSONObject keyValue = new JSONObject(msgText);
String value = keyValue.getString("value");
PublicKey signerKey = JsonWebSignature.getSignerKey(value);
@@ -102,7 +100,6 @@ public void onMessage(Message response) {
String hash = fileSharing.getHashFromMagnetURI(uri);
log.info("Download req: " + id + " @ "
+ (System.currentTimeMillis() - start));
- log.getHandlers()[0].flush();
fileSharing.downloadByHash(hash, ".json",
new MessageListener() {
public void onMessage(Message response) {
@@ -110,7 +107,6 @@ public void onMessage(Message response) {
+ id
+ " @ "
+ (System.currentTimeMillis() - start));
- log.getHandlers()[0].flush();
putRecord(record);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.