Skip to content

Commit 58cf8fc

Browse files
committed
Route MyBatis logging through commons-logging
MyBatis 3.1.1 has no log4j2 adapter, and its log4j adapter needs the log4j 1.x classes the bridge used to provide, so the server could not start. commons-logging hands MyBatis logging to the log4j2 API. Signed-off-by: Nico Piel <nicopiel@mailbox.org>
1 parent b10a406 commit 58cf8fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/main/java/com/mirth/connect/server/util/SqlConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public boolean isWritePoolCache() {
9191
*/
9292
private void init() {
9393
try {
94-
LogFactory.useLog4JLogging();
94+
LogFactory.useCommonsLogging();
9595
System.setProperty("derby.stream.error.method", "com.mirth.connect.server.Mirth.getNullOutputStream");
9696

9797
DatabaseSettings databaseSettings = ControllerFactory.getFactory().createConfigurationController().getDatabaseSettings();

0 commit comments

Comments
 (0)