wildfly-extras / wildfly-datasources-galleon-pack

WildFly Feature Pack for DataSources
Apache License 2.0
21 stars 18 forks source link

MariaDB driver needs to be dependent on slf4j when deployed as a module 5 of 106 Previous Issue'JBEAP-25038' Next Issue'JBEAP-25035' Return to search #203

Closed bstansberry closed 1 year ago

bstansberry commented 1 year ago

From https://issues.redhat.com/browse/JBEAP-25036:

Since driver version 3.0 MariaDB introduced new logging system to the driver that is based on Slf4j. This dependency is optional, but in case that the slf4j classes aren't available, the log messages are written to stderr which are then caught up by EAP and logged as ERROR even though it should be for example WARN. The code can be seen here: https://github.com/mariadb-corporation/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/util/log/Loggers.java#LL98C52-L98C52

To avoid this problem the jdbc driver module should have the dependency to org.slf4j module.