Skip to content

Commit

Permalink
error log show trace file (go-gorm#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkzsky authored and jinzhu committed Mar 10, 2019
1 parent c721a19 commit d239c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func (s *DB) AddError(err error) error {
if err != nil {
if err != ErrRecordNotFound {
if s.logMode == defaultLogMode {
go s.print(fileWithLineNum(), err)
go s.print("error", fileWithLineNum(), err)
} else {
s.log(err)
}
Expand Down

0 comments on commit d239c4c

Please sign in to comment.