@@ -220,7 +220,7 @@ func ingest(ctx context.Context, bheUrl url.URL, bheClient *http.Client, in <-ch
220
220
if response , err := bheClient .Do (req ); err != nil {
221
221
if rest .IsClosedConnectionErr (err ) {
222
222
// try again on force closed connection
223
- log .Error (err , "remote host force closed connection while requesting %s; attempt %d/%d; trying again...\n " , req .URL , retry + 1 , maxRetries )
223
+ log .Error (err , "remote host force closed connection while requesting %s; attempt %d/%d; trying again..." , req .URL , retry + 1 , maxRetries )
224
224
rest .ExponentialBackoff (retry )
225
225
226
226
if retry == maxRetries - 1 {
@@ -288,7 +288,7 @@ func do(bheClient *http.Client, req *http.Request) (*http.Response, error) {
288
288
if res , err = bheClient .Do (req ); err != nil {
289
289
if rest .IsClosedConnectionErr (err ) {
290
290
// try again on force closed connections
291
- log .Error (err , "remote host force closed connection while requesting %s; attempt %d/%d; trying again...\n " , req .URL , retry + 1 , maxRetries )
291
+ log .Error (err , "remote host force closed connection while requesting %s; attempt %d/%d; trying again..." , req .URL , retry + 1 , maxRetries )
292
292
rest .ExponentialBackoff (retry )
293
293
continue
294
294
}
0 commit comments