Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamza15 committed Jan 27, 2025
1 parent fa6a42e commit 8e1b6dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/vttablet/tabletserver/query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,15 @@ func (qre *QueryExecutor) execSelect() (*sqltypes.Result, error) {
}
conn, err := qre.getConn()
if err != nil {
log.Errorf("====================== ERROR WHEN TRYING TO GET CONNECTION FROM POOL: %s", err.Error())
return nil, err
}
defer conn.Recycle()

log.Info("====================== NO ERROR WHEN TRYING TO GET CONNECTION FROM POOL")
res, err := qre.execDBConn(conn.Conn, sql, true)
if err != nil {
log.Errorf("=========================== ERROR WHEN EXECUTING WITH CONNECTION: %s", err.Error())
return nil, err
}
return res, nil
Expand Down

0 comments on commit 8e1b6dd

Please sign in to comment.