Skip to content

Commit 610d3d8

Browse files
authored
Remove warning logs about client properties while using Kafka password-less function (Azure#32764)
1 parent b2234d6 commit 610d3d8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

sdk/spring/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This section includes changes in `spring-cloud-azure-autoconfigure` module.
1313
#### Breaking Changes
1414
- Delete properties: `spring.jms.serviebus.username`, `spring.jms.serviebus.password` and `spring.jms.serviebus.remote-uri` [#32467](https://github.com/Azure/azure-sdk-for-java/pull/32467).
1515

16+
### Spring Cloud Azure Core
17+
This section includes changes in `spring-cloud-azure-core`, `spring-cloud-azure-service`, and `spring-cloud-azure-resourcemanager` modules.
18+
19+
#### Bugs Fixed
20+
- Remove warning logs about client properties while using Kafka passwordless. [#32235](https://github.com/Azure/azure-sdk-for-java/issues/32235)
21+
1622
## 6.0.0-beta.4 (2022-12-07)
1723
Upgrade Spring Boot dependencies version to 3.0.0-RC2 and Spring Cloud dependencies version to 2022.0.0-RC2.
1824

sdk/spring/spring-cloud-azure-core/src/main/java/com/azure/spring/cloud/core/implementation/factory/AbstractAzureHttpClientBuilderFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,15 @@ protected void configureHttpHeaders(T builder) {
149149
*/
150150
protected void configureHttpLogOptions(T builder) {
151151
ClientOptionsProvider.ClientOptions client = getAzureProperties().getClient();
152-
152+
if (client == null) {
153+
return;
154+
}
153155
if (client instanceof ClientOptionsProvider.HttpClientOptions) {
154156
HttpLogOptions logOptions =
155157
HTTP_LOG_OPTIONS_CONVERTER.convert(((ClientOptionsProvider.HttpClientOptions) client).getLogging());
156158
consumeHttpLogOptions().accept(builder, logOptions);
157159
} else {
158-
LOGGER.warn("The client properties of an http-based client is of type {}", client.getClass().getName());
160+
LOGGER.debug("The client properties of an http-based client is of type {}", client.getClass().getName());
159161
}
160162

161163
}

0 commit comments

Comments
 (0)