Closed kenrestivo closed 8 years ago
Not sure. I can't seem to reproduce it. It looks to be like only a single string.
Here was my test:
@Test
public void HikarciCP() {
Logger log = LoggerFactory.getLogger("basicLoggin");
log.debug("{} - configuration:", "test");
String prop = "blah blah password blah";
String value = "test";
value = (prop.contains("password") ? "<masked>" : value);
log.debug((prop + "................................................").substring(0, 32) + (value != null ? value : ""));
}
This is the issue my PR fixes
@rufo : Its a bit weird since the missing functionality was the throwable overloaded version. None of the code in HikariCP is using the throwable case that I could see.
In any case, sounds like it's resolved and the code is now live in clojars. Closing the issue
I suspect the cause was actually line 828 which does use the throwable overload: https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/HikariConfig.java#L828
riiiight. Well, solved. :)
Thanks for the quick action on that!
With
Hikari throws this error:
The relevant line in Hikari appears to be: https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/HikariConfig.java#L839
Which is apparently not compatible with this: https://github.com/fzakaria/slf4j-timbre/blob/master/src/main/java/com/github/fzakaria/slf4j/timbre/TimbreLoggerAdapter.java#L63
Not sure who is in the right here (hikari or slf4j-timbre), but any help resolving this would be appreciated. Thanks!