Skip to content

Commit cdfd9a6

Browse files
authored
misc: Downgrade clock skew exception stack trace to debug level (#1143)
1 parent 49ec601 commit cdfd9a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/protocol/aws-protocol-core/common/src/aws/smithy/kotlin/runtime/awsprotocol/ClockSkewInterceptor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public class ClockSkewInterceptor : HttpInterceptor {
8989
try {
9090
Instant.fromRfc5322(it)
9191
} catch (e: ParseException) {
92-
logger.warn(e) { "Service returned malformed \"Date\" header value \"$it\", skipping skew calculation" }
92+
logger.debug(e) { "Error while parsing \"Date\" header from service response" }
93+
logger.warn { "Service returned malformed \"Date\" header value \"$it\", skipping skew calculation" }
9394
return context.response
9495
}
9596
} ?: run {

0 commit comments

Comments
 (0)