mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-09 17:00:30 +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:
parent
2155ec3d63
commit
0aaeeeee24
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user