Skip to content

Commit d799ddb

Browse files
committed
cleanup
1 parent ae12bc4 commit d799ddb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/clientlayers/ConnectionRequest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ function connectionlayer(handler)
128128
end
129129
end
130130
root_err = e isa CapturedException ? e.ex : e
131-
if logerrors && !(root_err isa StatusError || root_err isa Exceptions.TimeoutError || root_err isa Base.IOError)
131+
# don't log if it's an HTTPError since we should have already logged it
132+
if logerrors && !(root_err isa HTTPError)
132133
err = current_exceptions_to_string(e)
133134
@error err type=Symbol("HTTP.ConnectionRequest") method=req.method url=req.url context=req.context logtag=logtag
134135
end

test/client.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ end
293293
end
294294

295295
err = try
296-
HTTP.get("http://localhost:8080"; retry=false, verbose=3, logerrors=true)
296+
HTTP.get("http://localhost:8080"; retry=false)
297297
catch err
298298
err
299299
end

0 commit comments

Comments
 (0)