mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: do not format log messages, when no parameter was specified
This commit is contained in:
@@ -27,7 +27,11 @@ final class CaptureLogger implements SpiLogger {
|
||||
@Override
|
||||
public void debug(String msg, Object... args) {
|
||||
if (active) {
|
||||
messages.add(MessageFormat.format(msg, args));
|
||||
if (args != null && args.length > 0) {
|
||||
messages.add(MessageFormat.format(msg, args));
|
||||
} else {
|
||||
messages.add(msg);
|
||||
}
|
||||
}
|
||||
wrapped.debug(msg, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user