From 9185ab7bf016523809e925773313c1450effa599 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sat, 15 Jun 2024 13:12:46 -0700 Subject: [PATCH] libstore: work around aws sdk log spam at debug level aws-sdk-cpp spams logs about sending TLS data in the otherwise rather helpful debug logs. I've filed a PR upstream to stop it, but for now we can just fix their verbosity ourselves. Upstream-PR: https://github.com/aws/aws-sdk-cpp/pull/3003 Change-Id: I0c41a50d5f5958106836d6345843f4b05b9c8981 --- src/libstore/s3-binary-cache-store.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 51193dc6f..4aed791ce 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -55,6 +55,10 @@ class AwsLogger : public Aws::Utils::Logging::FormattedLogSystem void ProcessFormattedStatement(Aws::String && statement) override { + // FIXME: workaround for truly excessive log spam in debug level: https://github.com/aws/aws-sdk-cpp/pull/3003 + if ((statement.find("(SSLDataIn)") != std::string::npos || statement.find("(SSLDataOut)") != std::string::npos) && verbosity <= lvlDebug) { + return; + } debug("AWS: %s", chomp(statement)); }