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

Start replacing logrus with slog #63

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Start replacing logrus with slog #63

merged 2 commits into from
Nov 2, 2023

Conversation

norkans7
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #63 (f4ed394) into main (e792dbc) will decrease coverage by 9.06%.
The diff coverage is 34.14%.

@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   76.85%   67.80%   -9.06%     
==========================================
  Files           3        4       +1     
  Lines         363      410      +47     
==========================================
- Hits          279      278       -1     
- Misses         59      107      +48     
  Partials       25       25              
Files Coverage Δ
indexers/contacts.go 78.84% <100.00%> (ø)
indexers/base.go 82.23% <84.61%> (-0.12%) ⬇️
utils/http.go 55.55% <42.85%> (ø)
utils/logrus.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@norkans7 norkans7 marked this pull request as ready for review October 13, 2023 16:18
@@ -275,27 +275,26 @@ func (i *baseIndexer) indexBatch(index string, batch []byte) (int, int, error) {
createdCount, deletedCount, conflictedCount := 0, 0, 0
for _, item := range response.Items {
if item.Index.ID != "" {
logrus.WithField("id", item.Index.ID).WithField("status", item.Index.Status).Trace("index response")
slog.Debug("index response", "id", item.Index.ID, "status", item.Index.Status)
Copy link
Contributor Author

@norkans7 norkans7 Oct 13, 2023

Choose a reason for hiding this comment

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

slog has no Trace Level so I decided to use Debug level for this

@rowanseymour rowanseymour merged commit 164b29c into main Nov 2, 2023
5 of 7 checks passed
@rowanseymour rowanseymour deleted the slog branch November 2, 2023 17:40
@github-actions github-actions bot locked and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants