Skip to content

Commit

Permalink
适配V5.1.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyibing committed Mar 6, 2023
1 parent dc41296 commit 10c295e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/fuyibing/db/v5
go 1.13

require (
github.com/fuyibing/log/v5 v5.1.7
github.com/fuyibing/log/v5 v5.1.12
github.com/go-sql-driver/mysql v1.6.0
gopkg.in/yaml.v3 v3.0.1
xorm.io/xorm v1.3.2
Expand Down
4 changes: 2 additions & 2 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func (o *logger) AfterSQL(c xo.LogContext) {
if c.Err != nil {
if exists {
// 链路模式.
spa.Logger().Error("%v", c.Err)
spa.Logger().Error("[SQL] %v", c.Err)
} else {
// 普通模式.
log.Error("%v", c.Err)
log.Error("[SQL] %v", c.Err)
}
}
}
Expand Down

0 comments on commit 10c295e

Please sign in to comment.