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

issues/316: Do not duplicate logID #317

Merged
merged 11 commits into from
Jul 10, 2023
Merged

issues/316: Do not duplicate logID #317

merged 11 commits into from
Jul 10, 2023

Conversation

komuw
Copy link
Owner

@komuw komuw commented Jul 9, 2023

@komuw komuw marked this pull request as ready for review July 9, 2023 19:08
log/log_test.go Outdated

newId := "NEW-id-adh4e92427dajd"
ctx = context.WithValue(ctx, octx.LogCtxKey, newId)
l.ErrorCtx(ctx, "hey2", errors.New("badTingOne"))
l.ErrorCtx(ctx, "hey2", "err2", errors.New("badTingTwo"))
fmt.Println("\n\t ", w.String(), "\n.")
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO: remove this

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (742c508) 74.14% compared to head (d076faf) 74.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #317      +/-   ##
==========================================
+ Coverage   74.14%   74.15%   +0.01%     
==========================================
  Files          43       43              
  Lines        4861     4863       +2     
==========================================
+ Hits         3604     3606       +2     
  Misses       1009     1009              
  Partials      248      248              
Impacted Files Coverage Δ
log/log.go 78.74% <100.00%> (+0.34%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@komuw komuw merged commit abd6a3c into main Jul 10, 2023
4 checks passed
@komuw komuw deleted the issues/316 branch July 10, 2023 05:45
komuw added a commit that referenced this pull request Jul 10, 2023
- Some logID's are still duplicated, but not all.
  See the testcase added.
  It is kind of hard and non-perfomant[2] to try remove all duplicates.

1. Fixes: #316
2. golang/go#56345 (comment)
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.

logID are duplicated
2 participants