From c285cb84bd61a4d7c00b74fd4a573de94e4986eb Mon Sep 17 00:00:00 2001 From: sponge Date: Thu, 26 Jul 2012 20:30:42 +0000 Subject: [PATCH] BOB Fix static references to Log --- apps/BOB/src/net/i2p/BOB/BOB.java | 8 ++++---- history.txt | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/BOB/src/net/i2p/BOB/BOB.java b/apps/BOB/src/net/i2p/BOB/BOB.java index f8969566fc..0b55eb532d 100644 --- a/apps/BOB/src/net/i2p/BOB/BOB.java +++ b/apps/BOB/src/net/i2p/BOB/BOB.java @@ -115,7 +115,6 @@ import net.i2p.util.SimpleTimer2; */ public class BOB { - private final static Log _log = new Log(BOB.class); public final static String PROP_CONFIG_LOCATION = "BOB.config"; public final static String PROP_BOB_PORT = "BOB.port"; public final static String PROP_BOB_HOST = "BOB.host"; @@ -137,7 +136,7 @@ public class BOB { */ public static void info(String arg) { System.out.println("INFO:" + arg); - _log.info(arg); + (new Log(BOB.class)).info(arg); } /** @@ -147,7 +146,7 @@ public class BOB { */ public static void warn(String arg) { System.out.println("WARNING:" + arg); - _log.warn(arg); + (new Log(BOB.class)).warn(arg); } /** @@ -157,7 +156,7 @@ public class BOB { */ public static void error(String arg) { System.out.println("ERROR: " + arg); - _log.error(arg); + (new Log(BOB.class)).error(arg); } /** @@ -185,6 +184,7 @@ public class BOB { SimpleTimer2 Y2 = SimpleTimer2.getInstance(); i = Y1.hashCode(); i = Y2.hashCode(); + Log _log = new Log(BOB.class); try { { File cfg = new File(configLocation); diff --git a/history.txt b/history.txt index f573241248..2814076e2d 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,6 @@ +2012-07-26 sponge + * BOB Fix static references to Log + 2012-07-24 sponge * BOB reset spin flag to enable restart from zap command