-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Log elasticsearch issues in any case #2035
Conversation
I'll add a changelog file later |
For real? Shouldn't the first be a mock or decorator doing exactly this? |
@JoshuaBehrens You mean with testing? You can construct the class by own and pass a mock to test it |
@shyim I mean why is there an env check on |
Hello, thank you for creating this pull request. Please use this issue to track the state of your pull request. |
I'll mark this as incomplete as long as there isn't a changelog file |
Hi @JoshuaBehrens, |
40046c7
to
ef2cd17
Compare
I added a changelog. Reading that changelog makes me think: do we want to rename |
Hello, thank you for creating this pull request. Please use this issue to track the state of your pull request. |
well this was already imported to jira hmmmm |
@NiklasLimberg which one shall I reference in the changelog? |
@JoshuaBehrens Ideally NEXT-16905, i've closed the otherone as a duplicate already |
Hello, thank you for creating this pull request. Please use this issue to track the state of your pull request. |
Just disregard the new issue, I forgot again that it already has an issue |
As we discussed on Slack, remove the abstract class 👍 |
e15069f
to
803711e
Compare
I rebased and amend by consensus |
Hi @JoshuaBehrens, |
Thanks for your contribution |
1. Why is this change necessary?
When you run in prod mode and have an elastichsearch falling back to database search you don't know why because neither a log message is logged or an exception is thrown.
2. What does this change do, exactly?
Log in any case of an exception before environment evaluation is done.
3. Describe each step to reproduce the issue or behaviour.
4. Checklist
Is there a legit way how to test it when the first check literally is: am I in a test?