Skip to content

Commit

Permalink
Merge pull request Azure#439 from seanmcc-msft/431
Browse files Browse the repository at this point in the history
Resolved GitHub Issue Azure#431
  • Loading branch information
rickle-msft authored Feb 19, 2019
2 parents e463b46 + dae672f commit 15f77f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public Single<HttpResponse> sendAsync(final HttpRequest request) {
}

if (this.shouldLog(HttpPipelineLogLevel.INFO)) {
String logMessage = String.format("'%s'==> OUTGOING REQUEST (Try number='%d')%n", request.url(),
this.tryCount);
String logMessage = String.format("'%s'==> OUTGOING REQUEST (Try number='%d')%n",
sanitizeURL(request.url()), this.tryCount);
this.log(HttpPipelineLogLevel.INFO, logMessage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class LoggingTest extends APISpec {
then:
1 * logger.log(HttpPipelineLogLevel.INFO, _, _) >>
{ HttpPipelineLogLevel level, String message, Object[] params ->
if (!message.contains("OUTGOING REQUEST")) {
if (!message.contains("OUTGOING REQUEST") || message.contains("urlSignature")) {
throw new IllegalArgumentException(message)
}
}
Expand Down

0 comments on commit 15f77f3

Please sign in to comment.