Skip to content

Commit

Permalink
Use component logger
Browse files Browse the repository at this point in the history
  • Loading branch information
amenzhinsky committed Jun 30, 2020
1 parent bcd1879 commit 540eba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service_config.go
Expand Up @@ -339,13 +339,13 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult {
for i, n := range *m.Name {
path, err := n.generatePath()
if err != nil {
grpclog.Warningf("grpc: parseServiceConfig error unmarshaling %s due to methodConfig[%d]: %v", js, i, err)
logger.Warningf("grpc: parseServiceConfig error unmarshaling %s due to methodConfig[%d]: %v", js, i, err)
return &serviceconfig.ParseResult{Err: err}
}

if _, ok := paths[path]; ok {
err = errDuplicatedName
grpclog.Warningf("grpc: parseServiceConfig error unmarshaling %s due to methodConfig[%d]: %v", js, i, err)
logger.Warningf("grpc: parseServiceConfig error unmarshaling %s due to methodConfig[%d]: %v", js, i, err)
return &serviceconfig.ParseResult{Err: err}
}
paths[path] = struct{}{}
Expand Down

0 comments on commit 540eba3

Please sign in to comment.