Skip to content
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

Merged
merged 3 commits into from
May 29, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented May 29, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Fixes #4039.

How did you test this code?

Expanded the existing unit test.

@khvn26 khvn26 requested review from a team and gagantrivedi and removed request for a team May 29, 2024 10:31
Copy link

vercel bot commented May 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 2:01pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 2:01pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 2:01pm

@github-actions github-actions bot added the api Issue related to the REST API label May 29, 2024
@khvn26 khvn26 changed the title fix: Setting LOG_FORMAT: json does not write stack traces to logs fix: Setting LOG_FORMAT: json does not write stack traces to logs May 29, 2024
Copy link
Contributor

github-actions bot commented May 29, 2024

Uffizzi Preview deployment-52377 was deleted.

Copy link
Contributor

@zachaysan zachaysan left a 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.

Comment on lines 35 to 36
"Traceback (most recent call last):\n"
' File "/Users/kgustyr/dev/flagsmith/flagsmith/api/tests/unit/util/test_logging.py",'
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done.

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.42%. Comparing base (7454e4a) to head (5b47ebb).
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@khvn26 khvn26 added this pull request to the merge queue May 29, 2024
Merged via the queue into main with commit 9e2ffd2 May 29, 2024
24 checks passed
@khvn26 khvn26 deleted the fix/json-error-logging branch May 29, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting LOG_FORMAT: json does not write stack traces to logs
2 participants