Fixed failing tests
This commit is contained in:
parent
9dabeb4e47
commit
4d13ccc109
@ -34,9 +34,11 @@ import org.apache.commons.logging.Log;
|
|||||||
class CommonsLogger implements InternalLogger {
|
class CommonsLogger implements InternalLogger {
|
||||||
|
|
||||||
private final Log logger;
|
private final Log logger;
|
||||||
|
private final String loggerName;
|
||||||
|
|
||||||
CommonsLogger(Log logger) {
|
CommonsLogger(Log logger, String loggerName) {
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
|
this.loggerName = loggerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debug(String msg) {
|
public void debug(String msg) {
|
||||||
@ -89,6 +91,6 @@ class CommonsLogger implements InternalLogger {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return logger.toString();
|
return loggerName;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -41,6 +41,6 @@ public class CommonsLoggerFactory extends InternalLoggerFactory {
|
|||||||
public InternalLogger newInstance(String name) {
|
public InternalLogger newInstance(String name) {
|
||||||
final org.apache.commons.logging.Log logger =
|
final org.apache.commons.logging.Log logger =
|
||||||
org.apache.commons.logging.LogFactory.getLog(name);
|
org.apache.commons.logging.LogFactory.getLog(name);
|
||||||
return new CommonsLogger(logger);
|
return new CommonsLogger(logger, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user