Skip to content

Commit

Permalink
chore: add openapiv2 plugin in buf.gen.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
inchori committed Nov 27, 2023
1 parent 0aa13a4 commit 51ba3da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/interceptor/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/sirupsen/logrus"
)

// LoggerInterceptor from https://github.com/grpc-ecosystem/go-grpc-middleware/blob/main/interceptors/logging/examples/logrus/example_test.go
func LoggerInterceptor(l logrus.FieldLogger) logging.Logger {
return logging.LoggerFunc(func(_ context.Context, lvl logging.Level, msg string, fields ...any) {
f := make(map[string]any, len(fields)/2)
Expand Down

0 comments on commit 51ba3da

Please sign in to comment.