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

refactor(live-status-gw): reassign log levels #1140

Merged

Conversation

ianshade
Copy link
Contributor

@ianshade ianshade commented Feb 2, 2024

About the Contributor

This PR is being opened on behalf of TV 2 Norge.

Type of Contribution

This is a:

Code improvement / Log level improvement

Current Behavior

The Live Status Gateway outputs lots of excessive info level logs. When in use, it can output hundreds of thousands log entries a day. Some of them inform about individual document updates, heartbeat (sent out every 2 seconds), information about collection handlers and topics receiving or sending updates, etc.

New Behavior

info level is now mostly used for lifecycle events (initialization, connecting/disconnecting, subscribing/unsubscribing). Less relevant messages are demoted to debug or in few cases to silly.

Testing Instructions

Other Information

It's a draft, awaiting merge of #1131 after which I'll rebase this to release51

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@jesperstarkar jesperstarkar added the Contribution from TV 2 Norge Contributions sponsored by TV 2 Norge (tv2.no) label Feb 5, 2024
@mint-dewit
Copy link
Contributor

#1131 has been merged. Besides a rebase, is there anything else this is waiting for? We will most likely freeze R51 development soon so it would be nice to get this in before.

demotes many info messages to debug, some even to silly
@ianshade ianshade force-pushed the contribute/EAV-158-release51 branch from c4bf469 to 0c25dbb Compare March 11, 2024 09:55
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.88%. Comparing base (748b7a0) to head (0c25dbb).
Report is 29 commits behind head on release51.

Additional details and impacted files
@@              Coverage Diff               @@
##           release51    #1140       +/-   ##
==============================================
- Coverage      82.87%   57.88%   -24.99%     
==============================================
  Files            169      518      +349     
  Lines          30001    83616    +53615     
  Branches        2487     3121      +634     
==============================================
+ Hits           24864    48404    +23540     
- Misses          5133    35206    +30073     
- Partials           4        6        +2     

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

@ianshade ianshade marked this pull request as ready for review March 11, 2024 09:58
@ianshade
Copy link
Contributor Author

@mint-dewit, thanks for reminding me about this one. It's was rebased and now is ready for review!

@mint-dewit mint-dewit self-requested a review March 11, 2024 10:29
@mint-dewit mint-dewit merged commit 1eff236 into nrkno:release51 Mar 13, 2024
35 of 37 checks passed
@ianshade ianshade deleted the contribute/EAV-158-release51 branch May 29, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution from TV 2 Norge Contributions sponsored by TV 2 Norge (tv2.no) Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants