Skip to content

Commit bffbf4a

Browse files
authored
chore: Change abort logging from warning to debug (#354)
change abort logging from warning to debug
1 parent 0a66c69 commit bffbf4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,14 @@ export class Session<
647647
});
648648
}
649649
} catch (reason) {
650-
logger.warn("Failed to perform request. ", reason);
651650
if (reason instanceof Error && reason.name === "AbortError") {
651+
logger.debug("Request was aborted. ", reason);
652652
throw this.getErrorFromResponse({
653653
exception: "AbortError",
654654
content: reason.message,
655655
});
656656
}
657+
logger.warn("Failed to perform request. ", reason);
657658
throw reason;
658659
}
659660
}

0 commit comments

Comments
 (0)