mirror of https://github.com/go-gorm/gorm.git
error log show trace file (#2296)
This commit is contained in:
parent
c721a198a7
commit
d239c4cab8
2
main.go
2
main.go
|
@ -732,7 +732,7 @@ func (s *DB) AddError(err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != ErrRecordNotFound {
|
if err != ErrRecordNotFound {
|
||||||
if s.logMode == defaultLogMode {
|
if s.logMode == defaultLogMode {
|
||||||
go s.print(fileWithLineNum(), err)
|
go s.print("error", fileWithLineNum(), err)
|
||||||
} else {
|
} else {
|
||||||
s.log(err)
|
s.log(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue