From 45a7917a368e5f2446b44223766a79d7d7aacc74 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Tue, 31 Jan 2023 11:55:32 +0000 Subject: [PATCH] Backport of cf9fc69d6beaff1af817c841a56829c03c9eed8f Closes gh-29911 --- .../java/org/springframework/web/client/RestTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java index 29e3fb4626..ce275c92cb 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -818,7 +818,7 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat logger.debug("Response " + (status != null ? status : code)); } catch (IOException ex) { - // ignore + logger.debug("Failed to obtain response status code", ex); } } if (hasError) {