Skip to content

Commit

Permalink
Not fail request on if uuid generation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleDi committed Apr 30, 2020
1 parent 30b806e commit db7fc5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conn.go
Expand Up @@ -315,9 +315,10 @@ func (c *conn) buildRequest(ctx context.Context, query string, params []driver.V
if c.killQueryOnErr && queryID == "" {
queryUUID, err := uuid.NewV4()
if err != nil {
return nil, err
c.log("can't generate query_id: ", err)
} else {
queryID = queryUUID.String()
}
queryID = queryUUID.String()
}

reqQuery := req.URL.Query()
Expand Down

0 comments on commit db7fc5d

Please sign in to comment.