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

Modify Logging Levels for Read-only actions #5647

Merged
merged 12 commits into from
Jan 6, 2025
Merged

Conversation

RobertKeyser
Copy link
Contributor

@RobertKeyser RobertKeyser commented Jan 6, 2025

Description Of Changes

I don't find much value in logging messages like Finding all datasets for connection '{}' with pagination params {} in a production setting, when the HTTP logs cover almost the same information.

This PR converts all of those messages that are spawned from a read-type action (so not creates/updates/deletes) to a debug level. While they aren't hugely problematic, it will help our logs stay a bit cleaner.

IMO we're not really losing too much here, because when HTTP logs are logged with context, I don't need a second message telling me that it's doing what it should be doing. I did, however, keep those finding xyz logs on PUTs and DELETEs, etc to help show progress for those actions.

Code Changes

  • info -> debug for read actions

Steps to Confirm

  1. launch Fides w info logging enabled
  2. go to the request manager tab
  3. check logs

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
  • Followup issues:
    • Followup issues created (include link)
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

@RobertKeyser RobertKeyser self-assigned this Jan 6, 2025
Copy link

vercel bot commented Jan 6, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Jan 6, 2025 8:06pm

@RobertKeyser RobertKeyser changed the title Rkeyser/logging levels Modify Logging Levels for Read-only actions Jan 6, 2025
Copy link

cypress bot commented Jan 6, 2025

fides    Run #11644

Run Properties:  status check failed Failed #11644  •  git commit 7694704cf1 ℹ️: Merge b297e65d43395537342bcdb18375228fe53a3b04 into 0214492076a42c0e4a497c5dd2ed...
Project fides
Branch Review refs/pull/5647/merge
Run status status check failed Failed #11644
Run duration 01m 04s
Commit git commit 7694704cf1 ℹ️: Merge b297e65d43395537342bcdb18375228fe53a3b04 into 0214492076a42c0e4a497c5dd2ed...
Committer Robert Keyser
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 3
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/smoke_test.cy.ts • 1 failed test

View Output Video

Test Artifacts
Smoke test > can access Mongo and Postgres connectors from the Admin UI Screenshots Video

@RobertKeyser RobertKeyser marked this pull request as ready for review January 6, 2025 20:02
Copy link
Contributor

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

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

this looks good, thanks @RobertKeyser !

@RobertKeyser RobertKeyser merged commit 22c05f2 into main Jan 6, 2025
13 of 14 checks passed
@RobertKeyser RobertKeyser deleted the rkeyser/logging-levels branch January 6, 2025 20:08
Copy link

cypress bot commented Jan 6, 2025

fides    Run #11643

Run Properties:  status check passed Passed #11643  •  git commit 22c05f2f32: Modify Logging Levels for Read-only actions (#5647)
Project fides
Branch Review main
Run status status check passed Passed #11643
Run duration 00m 59s
Commit git commit 22c05f2f32: Modify Logging Levels for Read-only actions (#5647)
Committer Robert Keyser
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
View all changes introduced in this branch ↗︎

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.14%. Comparing base (f77633e) to head (b297e65).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5647   +/-   ##
=======================================
  Coverage   87.14%   87.14%           
=======================================
  Files         388      388           
  Lines       24000    24000           
  Branches     2594     2594           
=======================================
  Hits        20914    20914           
  Misses       2525     2525           
  Partials      561      561           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants