Skip to content

Commit 47d2155

Browse files
committed
When HTTP is canceled by user, set the log to debug
1 parent 21e9828 commit 47d2155

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

roda-core/roda-core/src/main/java/org/roda/core/storage/RangeConsumesOutputStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public void consumeOutputStream(OutputStream out, long from, long end) {
6262
try {
6363
payload.writeTo(out, from, end - from + 1);
6464
} catch (IOException e) {
65-
LOGGER.warn("Error writing to output stream", e);
65+
// This error occurs when web browser cancels stream
66+
// Which can normally happen in HTTP streaming
67+
LOGGER.trace("Error writing to output stream", e);
6668
}
6769
}
6870

0 commit comments

Comments
 (0)