From 66ad54fbf0f9c4f6f89e1f7388697fc09e8694a1 Mon Sep 17 00:00:00 2001 From: human Date: Tue, 13 Apr 2004 04:15:46 +0000 Subject: [PATCH] Made logs actually go through I2P logging system (human) --- core/java/src/net/i2p/data/Base64.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/data/Base64.java b/core/java/src/net/i2p/data/Base64.java index 078d57e74..eaf7c9b84 100644 --- a/core/java/src/net/i2p/data/Base64.java +++ b/core/java/src/net/i2p/data/Base64.java @@ -7,6 +7,8 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import net.i2p.util.Log; + /** * Encodes and decodes to and from Base64 notation. * @@ -37,6 +39,9 @@ import java.io.OutputStream; * @version 1.3.4 */ public class Base64 { + + private final static Log _log = new Log(Base64.class); + public static String encode(byte[] source) { return safeEncode(source); } @@ -579,7 +584,7 @@ public class Base64 { } // end if: white space, equals sign or better else { - System.err.println("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)"); + _log.warn("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)"); return null; } // end else: } // each input character