Skip to content

Commit

Permalink
#32591 undo log token on level TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Steppacher committed Nov 18, 2024
1 parent cb67353 commit b9a4451
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ abstract class FileHandlingBase(
this[CDR_PROCESSING_MODE_HEADER] = mode.value
this[AZURE_TRACE_ID_HEADER] = traceId
if (accessToken != null) {
this[HttpHeaders.AUTHORIZATION] = "Bearer $accessToken".also { header: String ->
logger.trace { "Authorization header set: $header " }
}
this[HttpHeaders.AUTHORIZATION] = "Bearer $accessToken"
}
this.build()
}
Expand All @@ -111,7 +109,6 @@ abstract class FileHandlingBase(
retryIoErrorsThrice.execute<String, Exception> { _ ->
val authResult: IAuthenticationResult = securedApp.acquireToken(clientCredentialParams).get()
logger.debug { "Token taken from ${authResult.metadata().tokenSource()}" }
logger.trace { "Token: ${authResult.accessToken()}" }
authResult.accessToken()
}
}.fold(
Expand Down

0 comments on commit b9a4451

Please sign in to comment.