Skip to content

Commit

Permalink
Log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Jan 19, 2023
1 parent 8b823e5 commit 2daf783
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcp/observability/logging.go
Expand Up @@ -350,6 +350,7 @@ func (bl *binaryLogger) GetMethodLogger(methodName string) iblog.MethodLogger {
logger.Infof("binarylogging: failed to parse %q: %v", methodName, err)
return nil
}
fmt.Printf("matching on method name: %v", methodName)
for _, eventConfig := range bl.EventConfigs {
if eventConfig.MatchAll || eventConfig.ServiceMethod[methodName] || eventConfig.Services[s] {
if eventConfig.Exclude {
Expand Down Expand Up @@ -403,6 +404,7 @@ func registerClientRPCEvents(clientRPCEvents []clientRPCEvents, exporter logging
eventConfig.Services[s] = true
continue
}
fmt.Printf("persisting method name: /%v", method)
eventConfig.ServiceMethod["/"+method] = true
}
eventConfigs = append(eventConfigs, eventConfig)
Expand Down Expand Up @@ -440,6 +442,7 @@ func registerServerRPCEvents(serverRPCEvents []serverRPCEvents, exporter logging
eventConfig.Services[s] = true
continue
}
fmt.Printf("persisting method name: /%v", method)
eventConfig.ServiceMethod["/"+method] = true
}
eventConfigs = append(eventConfigs, eventConfig)
Expand Down

0 comments on commit 2daf783

Please sign in to comment.