Flyway JdbcTemplate exception logging -


how can flyway output stack trace of exception occurred in java migrator?

apparently can't.

    private pair<boolean, migrationversion> applymigration(final resolvedmigration migration, boolean isoutoforder) throws flywayexception {     ...     } catch (exception e) {         log.error(e.tostring());          @suppresswarnings({"throwableresultofmethodcallignored"})         throwable rootcause = exceptionutils.getrootcause(e);         if (rootcause != null) {             log.error("caused " + rootcause.tostring());         }     } 

the stack trace swallowed , makes important information such line number of exception disappear.

are there plans on changing behavior?


Comments