Skip to content

Commit

Permalink
use existing func
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
  • Loading branch information
coleenquadros committed Sep 5, 2023
1 parent 95849e2 commit 6ff63c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions interceptors/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ func newCommonFields(kind string, c interceptors.CallMeta) Fields {
}

func customCommonFields(kind string, c interceptors.CallMeta, customFields []string) Fields {
commonFields := Fields{
SystemTag[0], SystemTag[1],
ComponentFieldKey, kind,
ServiceFieldKey, c.Service,
MethodFieldKey, c.Method,
MethodTypeFieldKey, string(c.Typ),
}
commonFields := newCommonFields(kind, c)

newFields := Fields{}
for _, key := range customFields {
Expand Down

0 comments on commit 6ff63c5

Please sign in to comment.