Skip to content

Commit

Permalink
clientcore, bug fix, logger null in HpptLoggingPolicy (#43745)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Jan 10, 2025
1 parent dbd675b commit 18b2e54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public Response<?> process(HttpRequest httpRequest, HttpPipelineNextPolicy next)
}

private ClientLogger getLogger(HttpRequest request) {
if (request.getRequestOptions() != null) {
if (request.getRequestOptions() != null && request.getRequestOptions().getLogger() != null) {
return request.getRequestOptions().getLogger();
}

Expand Down

0 comments on commit 18b2e54

Please sign in to comment.