yjp 1 anno fa
parent
commit
f8c7083a72
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      grpc_logger.go

+ 5 - 1
grpc_logger.go

@@ -5,6 +5,10 @@ import (
 	"google.golang.org/grpc"
 )
 
-func GRPCLogger() grpc.StreamServerInterceptor {
+func GRPCStreamServerLogger() grpc.StreamServerInterceptor {
 	return grpc_zap.StreamServerInterceptor(logger)
 }
+
+func GRPCUnaryServerLogger() grpc.UnaryServerInterceptor {
+	return grpc_zap.UnaryServerInterceptor(logger)
+}