Skip to content

Commit 9dd4ac3

Browse files
jbescossenivam
authored andcommitted
Useless exception when client closes stream whilst response transfer #3459
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent 4400ac5 commit 9dd4ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -720,7 +720,7 @@ public OutputStream getOutputStream(final int contentLength) throws IOException
720720
// output streams writes out bytes only on close (for example GZipOutputStream).
721721
response.close();
722722
} catch (final Exception e) {
723-
LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_CLOSING_COMMIT_OUTPUT_STREAM(), e);
723+
LOGGER.log(Level.WARNING, LocalizationMessages.ERROR_CLOSING_COMMIT_OUTPUT_STREAM(), e);
724724
}
725725
}
726726
}

0 commit comments

Comments
 (0)