Skip to content

Commit

Permalink
updateLogLevelInWebExceptionRetryPolicy (#37918)
Browse files Browse the repository at this point in the history
* change log level

---------

Co-authored-by: annie-mac <[email protected]>
  • Loading branch information
xinlian12 and annie-mac authored Dec 5, 2023
1 parent 6e86a45 commit ba85b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#### Bugs Fixed

#### Other Changes
* Changed to `DEBUG` log level in `WebExceptionRetryPolicy` for non-handled exception scenario and retry scenario - See [PR 37918](https://github.com/Azure/azure-sdk-for-java/pull/37918)

### 4.53.0 (2023-12-01)
#### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Mono<ShouldRetryResult> shouldRetry(Exception e) {
// Increase the retry count after calculating the delay
retryCount++;
logger
.warn("WebExceptionRetryPolicy() Retrying on endpoint {}, operationType = {}, resourceType = {}, count = {}, " +
.debug("WebExceptionRetryPolicy() Retrying on endpoint {}, operationType = {}, resourceType = {}, count = {}, " +
"isAddressRefresh = {}, shouldForcedAddressRefresh = {}, " +
"shouldForceCollectionRoutingMapRefresh = {}",
this.locationEndpoint, this.request.getOperationType(), this.request.getResourceType(), this.retryCount,
Expand All @@ -73,9 +73,8 @@ public Mono<ShouldRetryResult> shouldRetry(Exception e) {
}
}


logger
.warn(
.debug(
"WebExceptionRetryPolicy() No retrying on un-retryable exceptions on endpoint {}, operationType = {}, resourceType = {}, count = {}, " +
"isAddressRefresh = {}",
this.locationEndpoint,
Expand Down

0 comments on commit ba85b25

Please sign in to comment.