You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by franz1981 <gi...@git.apache.org> on 2018/09/25 09:32:41 UTC
[GitHub] activemq-artemis pull request #2181: ARTEMIS-1980 Warn on failed check of ta...
Github user franz1981 commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/2181#discussion_r220121826
--- Diff: artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/drivers/AbstractJDBCDriver.java ---
@@ -227,7 +227,11 @@ private void createTableIfNotExists(String tableName, String... sqls) throws SQL
}
}
} catch (SQLException e) {
- logger.warn(JDBCUtils.appendSQLExceptionDetails(new StringBuilder("Can't verify the initialization of table ").append(tableName).append(" due to:"), e, sqlProvider.getCountJournalRecordsSQL()));
+ if (logger.isDebugEnabled()) {
+ logger.debug(JDBCUtils.appendSQLExceptionDetails(new StringBuilder("Can't verify the initialization of table ").append(tableName).append(" due to:"), e, sqlProvider.getCountJournalRecordsSQL()));
+ } else {
+ logger.infof("Can't verify the initialization of table %s", tableName);
--- End diff --
I have missed what I should fix on this PR...it is providing a detailed log when DEBUG level is enabled, otherwise will just provide an info. That's because tends DB2 driver to scare users of weird errors when they are not errors at all...
---