Browse Source

修改bug

yjp 1 year ago
parent
commit
296fd60034
1 changed files with 2 additions and 0 deletions
  1. 2 0
      grpc_logger.go

+ 2 - 0
grpc_logger.go

@@ -6,9 +6,11 @@ import (
 )
 
 func GRPCStreamServerLogger() grpc.StreamServerInterceptor {
+	lazyInitialize()
 	return grpc_zap.StreamServerInterceptor(logger)
 }
 
 func GRPCUnaryServerLogger() grpc.UnaryServerInterceptor {
+	lazyInitialize()
 	return grpc_zap.UnaryServerInterceptor(logger)
 }