-
Notifications
You must be signed in to change notification settings - Fork 77
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
Failures when starting war file is only visible in debug mode #174
Comments
It sounds like you're hitting this (although it's not clear to me why this wouldn't affect executions via Lines 112 to 120 in 268b75d
I suggest we simply remove the debug property since its sole purpose seems to be to control the root logger's level in this all-or-nothing fashion. We can still set the root log level via properties. The code was added in #45 which contains no comments that would explain this weird piece of code. |
True, I don't see the need for this particular property at all, since it should be enough with the other logging configurations available in application.properties... Perhaps @xumakap can explain the reason why it was added? Don't know what kind of magic maven does in order to actually determine the build failure 😄 |
Actually we added handleLogging method for CLI not for service. If we enable -d option in CLI then using this method will display debug logs. but later versions of remrem-publish, someone changed it as @PostConstruct so it is changing service logger level too. so We need to change as handleLogging method is applicable to only CLI. |
Description
If I configure the publish service incorrectly and start the built war file locally with debug:false this property overwrites the other logging configurations so I'm not able to see why the service does not start properly. It just stops after logging some INFO about setting up rabbitmq ...
If I run with mvn spring-boot:run the error is logged properly (independent of other logging configurations) and I see the reason why the application does not start (configured wrong) but no message is visible when running the war file.
To reproduce:
debug:false
in application.properties for publishCompare with running it with mvn spring-boot:run, where the application fails to start and maven tells why.
Motivation
When I run the war file with wrong configurations I shouldn't need to turn on debug:true to see why the application fails to start.
Exemplification
Benefits
Same behavior upon upstart for both mvn and java commands when starting application with debug:false.
Possible Drawbacks
The text was updated successfully, but these errors were encountered: