Browse Source

logger兼容grpclog相关接口

marion 5 năm trước cách đây
mục cha
commit
84e6652745
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      utils/logger/logger.go

+ 4 - 0
utils/logger/logger.go

@@ -286,6 +286,10 @@ func (logger *Logger) Panicln(args ...interface{}) {
 	logger.WithCaller(2).Entry.Panicln(args...)
 }
 
+func (logger *Logger) V(v int) bool {
+	return false
+}
+
 var (
 	sqlRegexp                = regexp.MustCompile(`\?`)
 	numericPlaceHolderRegexp = regexp.MustCompile(`\$\d+`)