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