We have a legacy application that is being transitioned from MySQL v5.6 to MariaDB 10.8. This application uses a home grown logger ( enough said ). However, when SQL commands like preparedStatement.executeQuery() are run, any SQLException that is generated is being mirrored to the console ( I assume via stderr ). How can I stop this extra noise. The exception is trapped and handled, but the extra console noise is annoying.