yjp 1 anno fa
parent
commit
296fd60034
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)
 }