Skip to content

Commit

Permalink
Merge pull request #1391 from ya-goodfella/patch-1
Browse files Browse the repository at this point in the history
Redact sensitive headers in cURL logging
  • Loading branch information
Pask423 authored Apr 7, 2022
2 parents d96fdb1 + 8bd4b0a commit 8d7897d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/sttp/client3/logging/Log.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DefaultLog[F[_]](
logger(
beforeRequestSendLogLevel, {
s"Sending request: ${
if (beforeCurlInsteadOfShow && _logRequestBody && _logRequestHeaders) request.toCurl
if (beforeCurlInsteadOfShow && _logRequestBody && _logRequestHeaders) request.toCurl(sensitiveHeaders)
else request.show(includeBody = _logRequestBody, _logRequestHeaders, sensitiveHeaders)
}"
}
Expand Down

0 comments on commit 8d7897d

Please sign in to comment.