Skip to content

Commit

Permalink
fix(log): add check keyVals invalid (#1546)
Browse files Browse the repository at this point in the history
Signed-off-by: Devon Bear <itsdevbear@berachain.com>
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
  • Loading branch information
hoank101 and itsdevbear authored Jun 20, 2024
1 parent 4aed0d1 commit 7e05f42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/log/pkg/phuslu/phuslu.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ func (l Logger[ImplT]) With(keyVals ...any) ImplT {
for i := 0; i < len(keyVals); i += 2 {
key, ok := keyVals[i].(string)
if !ok {
<<<<<<< hoa/fix-log

Check failure on line 104 in mod/log/pkg/phuslu/phuslu.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

syntax error: unexpected <<, expected }
continue
=======

Check failure on line 106 in mod/log/pkg/phuslu/phuslu.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

syntax error: unexpected ==, expected }
panic("context key must be a string")
>>>>>>> main

Check failure on line 108 in mod/log/pkg/phuslu/phuslu.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

syntax error: unexpected >>, expected }
}
newLogger.context[key] = keyVals[i+1]
}
Expand Down

0 comments on commit 7e05f42

Please sign in to comment.