-
Notifications
You must be signed in to change notification settings - Fork 47
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 traceback in case of exceptions during optimizations #1156
Conversation
So far only the exception message was stored if an exception occurred during optimization with FidesOptimizer. This is often enough not helpful at all. Now this includes exception type / message / traceback. Related to #1147
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this include the whole traceback now? might be quite long, but good to have for this anyways.
Not sure on policies we have on importing, but possibly nicer to have them as default import for the sake of better overview?
Yes. One can always shorten it later. But previously this didn't contain sufficient information to debug anything.
No clear policy. But if those modules are only required under exceptional circumstances, i would only import them under exceptional circumstances. |
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #1156 +/- ##
===========================================
- Coverage 88.16% 84.33% -3.84%
===========================================
Files 79 148 +69
Lines 5257 11683 +6426
===========================================
+ Hits 4635 9853 +5218
- Misses 622 1830 +1208
|
Okay, this is not quite what we want. This messes up handling of cases like |
…ons" This reverts commit 72e0e7b.
OptimizerResult.message
in case of exceptions
Changed now. Leaving FidesOptimizer exception reporting as it was, just changing it for the non-caught exceptions. Only logging the full traceback, but keeping the result message short. Should be reasonable compromise. @PaulJonasJost Please re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, agreed that this seems like a reasonable compromise
So far, with
minimize(..., OptimizeOptions(allow_failed_starts=True))
only the exception message was stored/logged, which is not always sufficiently
informative (see #1147).
Now we log the full exception type / message / traceback.
Closes #1147