-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Spring Boot logging and missing traces #165
Comments
Thanks for reporting. As Andy explained in linked Spring Boot issue, AWS logs are not printed as the logging subsystem isn't ready yet. We cannot though use Currently when I run your sample, I am getting following error message:
which gets resolved through
We could make it more self explanatory in AwsParamStoreConfigDataLoader and instead of simply throwing |
It would also be helpful if the execution message adds all context is can find. I don't have any spring profile settings defined (but I can't be 100% since the log is not there during startup.) |
@Lucas3oo "default" profile is the profile that is active when no other profile is active, perhaps this is where its coming from. Have you considered using |
But the thing is it didn't act like this in previous version of Spring AWS cloud. |
In merged PR i enabled logging for both |
test-spring-logging.zip
From spring-projects/spring-boot#27406
I think there is a bug / problem in the way Spring Boot configures logging with Logback.
Using Spring Boot 2.4.8 and Spring Cloud Aws 2.31, I created a minimalist Spring Boot application with a dependency on "spring-cloud-starter-aws-parameter-store-config" using paramstore.
If I do not set any AWS credentials, the AWS SDK cannot connect, so there is an error. But Spring Boot only logs :
I also added a test class without Spring Boot, using Logback and a similar AWS call, and the logs contain :
So, as you can see all, those AWS logs are missing when using Spring Boot.
test-spring-logging.zip
The text was updated successfully, but these errors were encountered: