-
Notifications
You must be signed in to change notification settings - Fork 401
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
fix: Setting LOG_FORMAT: json
does not write stack traces to logs
#4040
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LOG_FORMAT: json
does not write stack traces to logs
Uffizzi Preview |
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.
Overall looks good, just one part of the test that needs addressing.
api/tests/unit/util/test_logging.py
Outdated
"Traceback (most recent call last):\n" | ||
' File "/Users/kgustyr/dev/flagsmith/flagsmith/api/tests/unit/util/test_logging.py",' |
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.
Looks like you're going to need to fix the $HOME
and work part of the filepath.
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! Done.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4040 +/- ##
=======================================
Coverage 96.41% 96.42%
=======================================
Files 1146 1146
Lines 37373 37386 +13
=======================================
+ Hits 36035 36048 +13
Misses 1338 1338 ☔ View full report in Codecov by Sentry. |
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Fixes #4039.
How did you test this code?
Expanded the existing unit test.