mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +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:
		| @@ -4,7 +4,6 @@ | |||||||
| 
 | 
 | ||||||
| package dan200.computercraft.core.apis.http.request; | 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.ArrayByteChannel; | ||||||
| import dan200.computercraft.core.apis.handles.ReadHandle; | import dan200.computercraft.core.apis.handles.ReadHandle; | ||||||
| import dan200.computercraft.core.apis.http.HTTPRequestException; | import dan200.computercraft.core.apis.http.HTTPRequestException; | ||||||
| @@ -162,7 +161,7 @@ public final class HttpRequestHandler extends SimpleChannelInboundHandler<HttpOb | |||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { |     public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { | ||||||
|         LOG.error(Logging.HTTP_ERROR, "Error handling HTTP response", cause); |         ctx.close(); | ||||||
|         request.failure(NetworkUtils.toFriendlyError(cause)); |         request.failure(NetworkUtils.toFriendlyError(cause)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates