error log show trace file (#2296)

This commit is contained in:
kuangzhiqiang 2019-03-10 20:03:55 +08:00 committed by Jinzhu
parent c721a198a7
commit d239c4cab8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }