Skip to content

Commit

Permalink
session: fix bad log
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Feb 1, 2023
1 parent 9ebd766 commit 3be0c53
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 (
"fmt"
"io/ioutil"
osuser "os/user"
"runtime/debug"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -2515,8 +2514,7 @@ func mustExecute(s Session, sql string, args ...interface{}) {
_, err := s.ExecuteInternal(ctx, sql, args...)
defer cancel()
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 3be0c53

Please sign in to comment.