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

Move logging into worker processing loop: #882

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

jacobweinstock
Copy link
Member

Description

This sets a new logger with values for each loop. Previously the loop was being set outside of the loop and all .With functions persisted across loops. This made the logs almost unreadable when multiple workflows were run by a single worker.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (cdce3e1) 51.19% compared to head (fc5a3c4) 51.23%.
Report is 1 commits behind head on main.

❗ Current head fc5a3c4 differs from pull request most recent head 038c6af. Consider uploading reports for the commit 038c6af to get more accurate results

Files Patch % Lines
cmd/tink-worker/worker/worker.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #882      +/-   ##
==========================================
+ Coverage   51.19%   51.23%   +0.03%     
==========================================
  Files          33       33              
  Lines        1459     1458       -1     
==========================================
  Hits          747      747              
+ Misses        666      665       -1     
  Partials       46       46              

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

This sets a new logger with values for each
loop. Previously the loop was being set
outside of the loop and all .With functions
were persisted across loops. This made the
logs almost unreadable when multiple workflows
were run by a single worker.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Feb 17, 2024
@mergify mergify bot merged commit cbb02e3 into tinkerbell:main Feb 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants