Skip to content

Commit

Permalink
fix noisy log when MD5 checksum is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Jul 30, 2024
1 parent cff2c0b commit da16ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws-cpp-sdk-core/source/client/AWSClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,9 +866,9 @@ void AWSClient::AddChecksumToRequest(const std::shared_ptr<Aws::Http::HttpReques
{
httpRequest->SetHeaderValue(Http::CONTENT_MD5_HEADER, HashingUtils::Base64Encode(HashingUtils::CalculateMD5(*(GetBodyStream(request)))));
}
else
else if (headers.find(CONTENT_MD5_HEADER) == headers.end())
{
AWS_LOGSTREAM_WARN(AWS_CLIENT_LOG_TAG, "Checksum algorithm: " << checksumAlgorithmName << "is not supported by SDK.");
AWS_LOGSTREAM_WARN(AWS_CLIENT_LOG_TAG, "Checksum algorithm: " << checksumAlgorithmName << " is not supported by SDK.");
}
}

Expand Down

0 comments on commit da16ab6

Please sign in to comment.