improve bubble up errors and fix a few logging messages
This commit is contained in:
parent
755ca0238b
commit
9341d3fe32
|
@ -186,8 +186,8 @@ func (lc *LokiClient) Tail(ctx context.Context) (chan *LokiResponse, error) {
|
||||||
err = conn.ReadJSON(jsonResponse)
|
err = conn.ReadJSON(jsonResponse)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lc.Logger.Errorf("Websocket write: %s, raw: %s", err, jsonResponse)
|
lc.Logger.Errorf("Error reading from websocket: %s", err)
|
||||||
return fmt.Errorf("Websocket write: %s, raw: %s", err, jsonResponse)
|
return fmt.Errorf("websocket error: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
responseChan <- jsonResponse
|
responseChan <- jsonResponse
|
||||||
|
|
Loading…
Reference in a new issue