1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-09 00:40:29 +00:00

Don't log HTTP errors

We don't do this for websockets, so maybe we can get away without this
for HTTP ones too? Closes #1975.
This commit is contained in:
Jonathan Coates 2024-10-27 16:07:17 +00:00
parent 2155ec3d63
commit 0aaeeeee24
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -4,7 +4,6 @@
package dan200.computercraft.core.apis.http.request;
import dan200.computercraft.core.Logging;
import dan200.computercraft.core.apis.handles.ArrayByteChannel;
import dan200.computercraft.core.apis.handles.ReadHandle;
import dan200.computercraft.core.apis.http.HTTPRequestException;
@ -162,7 +161,7 @@ public final class HttpRequestHandler extends SimpleChannelInboundHandler<HttpOb
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
LOG.error(Logging.HTTP_ERROR, "Error handling HTTP response", cause);
ctx.close();
request.failure(NetworkUtils.toFriendlyError(cause));
}