Skip to content

Commit 83527e0

Browse files
committed
fix: only log out at error level for QUICStream if internal
1 parent 52a7a66 commit 83527e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QUICStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class QUICStream implements ReadableWritablePair<Uint8Array, Uint8Array> {
149149
*/
150150
protected handleEventQUICStreamError = (evt: events.EventQUICStreamError) => {
151151
const error = evt.detail;
152-
this.logger.error(utils.formatError(error));
153152
if (error instanceof errors.ErrorQUICStreamInternal) {
153+
this.logger.error(utils.formatError(error));
154154
throw error;
155155
}
156156
if (

0 commit comments

Comments
 (0)