diff options
author | Will Korteland <will.korteland@mongodb.com> | 2022-10-20 02:11:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-20 02:43:27 +0000 |
commit | 31311d7a82198e1dd5c73e8a5ebaf8d32c1b2c64 (patch) | |
tree | fbdff1c76164aad28288985f649162d6a3ee8fa2 /src/third_party/wiredtiger/ext/storage_sources/s3_store | |
parent | 8a0aabdf03cdb69f14375f109d6b49da21bbeee2 (diff) | |
download | mongo-31311d7a82198e1dd5c73e8a5ebaf8d32c1b2c64.tar.gz |
Import wiredtiger: 9540e4553ce3ac24d28a1b9021fa06c4b06221be from branch mongodb-master
ref: 05c20a5d82..9540e4553c
for: 6.2.0-rc0
WT-9922 Add more debug log levels (#8384)
Diffstat (limited to 'src/third_party/wiredtiger/ext/storage_sources/s3_store')
-rw-r--r-- | src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_log_system.h | 8 | ||||
-rw-r--r-- | src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_storage_source.cpp | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_log_system.h b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_log_system.h index 5542b1b3bc9..3e6b2c42e21 100644 --- a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_log_system.h +++ b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_log_system.h @@ -43,7 +43,11 @@ static const std::map<int32_t, Aws::Utils::Logging::LogLevel> verbosityMapping = {WT_VERBOSE_WARNING, Aws::Utils::Logging::LogLevel::Error}, {WT_VERBOSE_WARNING, Aws::Utils::Logging::LogLevel::Warn}, {WT_VERBOSE_INFO, Aws::Utils::Logging::LogLevel::Info}, - {WT_VERBOSE_DEBUG, Aws::Utils::Logging::LogLevel::Debug}}; + {WT_VERBOSE_DEBUG_1, Aws::Utils::Logging::LogLevel::Debug}, + {WT_VERBOSE_DEBUG_2, Aws::Utils::Logging::LogLevel::Debug}, + {WT_VERBOSE_DEBUG_3, Aws::Utils::Logging::LogLevel::Debug}, + {WT_VERBOSE_DEBUG_4, Aws::Utils::Logging::LogLevel::Debug}, + {WT_VERBOSE_DEBUG_5, Aws::Utils::Logging::LogLevel::Trace}}; // Provides the S3 Store with a logger implementation that redirects the generated logs to // WiredTiger's logging streams. This class implements AWS's LogSystemInterface class, an interface @@ -73,7 +77,7 @@ class S3LogSystem : public Aws::Utils::Logging::LogSystemInterface { void LogDebugMessage(const std::string &message) const { - LogVerboseMessage(WT_VERBOSE_DEBUG, message); + LogVerboseMessage(WT_VERBOSE_DEBUG_1, message); } // Sets the WiredTiger Extension's verbosity level and matches the AWS log levels diff --git a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_storage_source.cpp b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_storage_source.cpp index 4b66197845a..4010c5bcf99 100644 --- a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_storage_source.cpp +++ b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_storage_source.cpp @@ -869,7 +869,7 @@ wiredtiger_extension_init(WT_CONNECTION *connection, WT_CONFIG_ARG *config) s3->verbose = WT_VERBOSE_ERROR; s3->log = Aws::MakeShared<S3LogSystem>("storage", s3->wtApi, s3->verbose); - if (ret == 0 && v.val >= WT_VERBOSE_ERROR && v.val <= WT_VERBOSE_DEBUG) { + if (ret == 0 && v.val >= WT_VERBOSE_ERROR && v.val <= WT_VERBOSE_DEBUG_5) { s3->verbose = v.val; s3->log->SetWtVerbosityLevel(s3->verbose); } else if (ret != WT_NOTFOUND) { |