From 51ba3da55322a84a9174a0be8c3affe19df09fa5 Mon Sep 17 00:00:00 2001 From: InChul <49394875+inchori@users.noreply.github.com> Date: Mon, 27 Nov 2023 23:02:39 +0900 Subject: [PATCH] chore: add openapiv2 plugin in buf.gen.yaml --- server/interceptor/logger.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/interceptor/logger.go b/server/interceptor/logger.go index b069e35..707a558 100644 --- a/server/interceptor/logger.go +++ b/server/interceptor/logger.go @@ -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)