New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.16.3: VersionPrinter fails initializing log4j logger when running the application natively #3659
Comments
I think this issue has the same underlying cause as #3651. |
Hi @ArnauAregall , just would like to confirm with you whether slf4j is the expected logger in your environment? |
Hello @JasonLuo-Redgate, yes, it should. By using Spring Boot starters I am not adding any specific logging dependency. Loggers are declared using slf4j. import org.slf4j.Logger
import org.slf4j.LoggerFactory
public class App {
public static final Logger = LoggerFactory.getLogger(App.class)
} Here is the relevant part of the dependency tree in regards of logging in case it helps.
|
Hi @ArnauAregall , thanks for your confirmation. |
This issue has been fixed in the latest version of Flyway, so closing this ticket. |
Which version and edition of Flyway are you using?
flyway-core:9.16.3
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Using the latest as of the time of opening the issue (23/04/23).
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle plugin, Native
Which database are you using? (Type & version)
PostgreSQL latest (15.2)
Which operating system are you using?
macOS 13.3.1
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
./gradlew nativeRun
or either on a Docker image.org.flywaydb.core.internal.license.VersionPrinter
not being able to get the logger.What did you expect to see?
Flyway printing the version correctly.
What did you see instead?
The mentioned stacktrace.
The text was updated successfully, but these errors were encountered: