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) {