From bea7039c3e900670d9feefb77a0df77df9c9a750 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 24 Jan 2014 16:44:22 +0900 Subject: [PATCH] Add a log message on deletion failure --- .../handler/codec/http/multipart/AbstractDiskHttpData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpData.java b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpData.java index 7ca4a4da2e..d2704055bb 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpData.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractDiskHttpData.java @@ -229,7 +229,8 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData { try { fileChannel.force(false); fileChannel.close(); - } catch (IOException e) { //ignore + } catch (IOException e) { + logger.warn("Failed to close a file.", e); } fileChannel = null; }