If the database connection information is invalid or if the database connection fails, the migration proceeds even though the logging is failing.
A simple query could be added to the doInitLog method of the MigrationLogJdbc class. This may need to be injected so the class wouldn't become dependent on a certain database type. Or potentially there is another method that could be used to ascertain the connection is valid.