diff --git a/wrapper/gorm_v2.go b/wrapper/gorm_v2.go index 25f5968..0581e73 100644 --- a/wrapper/gorm_v2.go +++ b/wrapper/gorm_v2.go @@ -70,6 +70,7 @@ func NewGormLoggerWithInstance(ctx *gin.Context, dbClient *gorm.DB, instance *za i.node = nodeArr[1] i.flag = nodeArr[0] } + return i } // Gorm v2 版本库日志实现