Skip to content

Commit 033ac3b

Browse files
committed
CLOUDSTACK-8656: messages on errors closing streams for local templates
1 parent 65dc1d5 commit 033ac3b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/src/com/cloud/storage/template/LocalTemplateDownloader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,27 +123,31 @@ public long download(boolean resume, DownloadCompleteCallback callback) {
123123
try {
124124
fic.close();
125125
} catch (IOException e) {
126+
s_logger.info("[ignore] error while closing file input channel.");
126127
}
127128
}
128129

129130
if (foc != null) {
130131
try {
131132
foc.close();
132133
} catch (IOException e) {
134+
s_logger.info("[ignore] error while closing file output channel.");
133135
}
134136
}
135137

136138
if (fis != null) {
137139
try {
138140
fis.close();
139141
} catch (IOException e) {
142+
s_logger.info("[ignore] error while closing file input stream.");
140143
}
141144
}
142145

143146
if (fos != null) {
144147
try {
145148
fos.close();
146149
} catch (IOException e) {
150+
s_logger.info("[ignore] error while closing file output stream.");
147151
}
148152
}
149153

0 commit comments

Comments
 (0)