[slf4j-dev] svn commit: r484 - slf4j/trunk/src/java/org/slf4j/impl
ceki at slf4j.org
ceki at slf4j.org
Mon Jan 9 17:56:26 CET 2006
Author: ceki
Date: Mon Jan 9 17:56:25 2006
New Revision: 484
Modified:
slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java
Log:
Remove superflous message.toString() calls which made JDK14LoggerAdapter vulnerable to null input.
Modified: slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java
==============================================================================
--- slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java (original)
+++ slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java Mon Jan 9 17:56:25 2006
@@ -306,7 +306,7 @@
* @param t the exception (throwable) to log
*/
public void warn(String msg, Throwable t) {
- logger.log(Level.WARNING, msg.toString(), t);
+ logger.log(Level.WARNING, msg, t);
}
/**
More information about the slf4j-dev
mailing list