Attempted fix for 1.12.

This commit is contained in:
Haarolean
2017-11-13 04:02:19 +03:00
parent 956f0cc3ef
commit f034cef465
7 changed files with 43 additions and 22 deletions

View File

@@ -32,12 +32,14 @@ public class PluginSlf4jFactory implements ILoggerFactory {
if (SshdPlugin.instance != null && isEnabled(level)) {
FormattingTuple ft = MessageFormatter.arrayFormat(s, objects);
SshdPlugin.instance.getLogger().log(level, ft.getMessage(), ft.getThrowable());
SshdPlugin.instance.getLogger().log(level, s, Thread.currentThread().getStackTrace());
}
}
private void log(Level level, String s, Throwable throwable) {
if (SshdPlugin.instance != null && isEnabled(level)) {
SshdPlugin.instance.getLogger().log(level, s, throwable);
SshdPlugin.instance.getLogger().log(level, s, Thread.currentThread().getStackTrace());
}
}