Skip to content

Commit

Permalink
session: fix bad log (#40948) (#40958)
Browse files Browse the repository at this point in the history
close #40947
  • Loading branch information
ti-chi-bot authored Jun 30, 2023
1 parent bd94fb8 commit 0d9c6cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions session/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"flag"
"fmt"
osuser "os/user"
"runtime/debug"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -2084,8 +2083,7 @@ func doDMLWorks(s Session) {
func mustExecute(s Session, sql string, args ...interface{}) {
_, err := s.ExecuteInternal(context.Background(), sql, args...)
if err != nil {
debug.PrintStack()
logutil.BgLogger().Fatal("mustExecute error", zap.Error(err))
logutil.BgLogger().Fatal("mustExecute error", zap.Error(err), zap.Stack("stack"))
}
}

Expand Down

0 comments on commit 0d9c6cd

Please sign in to comment.