Skip to content

Commit

Permalink
Merge pull request #4 from Jack-laoniu/feature/gormtrace
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
afocus authored Oct 18, 2022
2 parents af10d09 + cfd9866 commit f0dd44d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/gorm/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (

"github.com/afocus/trace"

"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gorm.io/gorm/logger"
)

Expand All @@ -27,7 +25,7 @@ type zerologgerDriver struct {

// // Trace 主要输出log日志的方法
func (c *zerologgerDriver) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) {

}

func (c *zerologgerDriver) LogMode(logger.LogLevel) logger.Interface { return c }
Expand Down

0 comments on commit f0dd44d

Please sign in to comment.