Merge pull request #12067 from excitoon-favorites/betters3logs

Moved useless S3 logging to TRACE level
This commit is contained in:
alesapin 2020-07-02 13:21:55 +03:00 committed by GitHub
commit cec02d15ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ void PocoHTTPClient::MakeRequestInternal(
if (request.GetContentBody())
{
LOG_DEBUG(log, "Writing request body.");
LOG_TRACE(log, "Writing request body.");
if (attempt > 0) /// rewind content body buffer.
{
request.GetContentBody()->clear();
@ -116,7 +116,7 @@ void PocoHTTPClient::MakeRequestInternal(
LOG_DEBUG(log, "Written {} bytes to request body", size);
}
LOG_DEBUG(log, "Receiving response...");
LOG_TRACE(log, "Receiving response...");
auto & response_body_stream = session->receiveResponse(poco_response);
int status_code = static_cast<int>(poco_response.getStatus());

View File

@ -31,7 +31,7 @@ const std::pair<DB::LogsLevel, Poco::Message::Priority> & convertLogLevel(Aws::U
{Aws::Utils::Logging::LogLevel::Error, {DB::LogsLevel::error, Poco::Message::PRIO_ERROR}},
{Aws::Utils::Logging::LogLevel::Warn, {DB::LogsLevel::warning, Poco::Message::PRIO_WARNING}},
{Aws::Utils::Logging::LogLevel::Info, {DB::LogsLevel::information, Poco::Message::PRIO_INFORMATION}},
{Aws::Utils::Logging::LogLevel::Debug, {DB::LogsLevel::debug, Poco::Message::PRIO_DEBUG}},
{Aws::Utils::Logging::LogLevel::Debug, {DB::LogsLevel::trace, Poco::Message::PRIO_TRACE}},
{Aws::Utils::Logging::LogLevel::Trace, {DB::LogsLevel::trace, Poco::Message::PRIO_TRACE}},
};
return mapping.at(log_level);