Skip to content

Commit

Permalink
[nikepan#6]add info to log when error from CH
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorya committed Aug 1, 2023
1 parent f455778 commit 0be8540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func (srv *ClickhouseServer) SendQuery(r *ClickhouseRequest) (response string, s
resp, err := srv.Client.Post(url, "text/plain", strings.NewReader(r.Content))
if err != nil {
srv.Bad = true
log.Printf("INFO: recive error %+v with response from CH %+v", err, resp)
return err.Error(), http.StatusBadGateway, ErrServerIsDown
}
if r.isInsert {
Expand Down

0 comments on commit 0be8540

Please sign in to comment.