diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-06-15 13:12:46 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-06-18 15:11:49 -0700 |
commit | 9185ab7bf016523809e925773313c1450effa599 (patch) | |
tree | c50fe0bf34555d5336fc42e29aa4559c146cdb25 | |
parent | 02ca60809d511b280336344cb9420b7df2d57e6c (diff) |
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
-rw-r--r-- | src/libstore/s3-binary-cache-store.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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)); } |