Logs to a database table #49597
Replies: 1 comment
-
Didn't find any way to do this, so added a 'enabled' configuration to the handler, the test starts with the enabled = false, and then after the table creation, i toggle it back to true. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a requirement to send logs to a database table , we created a handler for that as an extension. When testing it using @QuarkusUnitTest , we have to create the table before the tests run. Adding a @beforeeach is too late since the app starts and emits logs that cannot be persisted because the table isn't yet created. Is there a way to handle this in tests ?
In production the table exists before the apps are created so it's fine .
Beta Was this translation helpful? Give feedback.
All reactions