-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Hibernate statistics and metrics are no longuer showing #21177
Comments
/cc @Sanne, @ebullient, @gsmet, @jmartisk, @yrodiere |
Can you attach a sample project that was working before Thanks |
This was intentionally introduced by #20693 |
Thanks for the information @jmartisk. |
@jmartisk Thank you for replying. @geoand You still need the sample project ? to be more specific, I was working with |
Logging of statistics is deactivated right now and can't be turned on. Metrics (meaning exposing the statistics via Micrometer or SmallRye Metrics) will still work, the statistics just won't appear in the server log. @Sanne , it looks like your condition in #20666 (comment) was just fulfilled :) I can prepare a PR to add the property. |
@jmartisk yes please :) We rely too much on those logs. |
I'm still not persuaded by it but OK let's fix it since it was an existing "feature" @AchrafBelkahla I hope you know you can also invoke I would generally suggest to use this approach instead. |
@Sanne Well, I didn't :/ |
FTR I agree with Sanne. I don't think statistics really belong in the log. At least, except for something the user is really especially interested in, enough to log it themself. |
Hi ! Thank you for this comment ! I can @Inject an |
The Panache repository is using the same EntityManager that you'd get by injecting it, as it will look it up via CDI from the same context. You can also use |
hello,
I just migrated to quarkus 2.4.1. The metrics and statistics are no longuer displayed in console while the sql log is OK !
My "application.properties" file :
The text was updated successfully, but these errors were encountered: