Skip to content

Commit ddf3838

Browse files
Backport ClickHouse#92810 to 25.8: Change log level
1 parent df4ad83 commit ddf3838

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Databases/DataLake/RestCatalog.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ RestCatalog::Config RestCatalog::loadConfig()
156156
std::string json_str;
157157
readJSONObjectPossiblyInvalid(json_str, *buf);
158158

159-
LOG_TEST(log, "Received catalog configuration settings: {}", json_str);
159+
LOG_DEBUG(log, "Received catalog configuration settings: {}", json_str);
160160

161161
Poco::JSON::Parser parser;
162162
Poco::Dynamic::Var json = parser.parse(json_str);
@@ -170,7 +170,7 @@ RestCatalog::Config RestCatalog::loadConfig()
170170
auto overrides_object = object->get("overrides").extract<Poco::JSON::Object::Ptr>();
171171
parseCatalogConfigurationSettings(overrides_object, result);
172172

173-
LOG_TEST(log, "Parsed catalog configuration settings: {}", result.toString());
173+
LOG_DEBUG(log, "Parsed catalog configuration settings: {}", result.toString());
174174
return result;
175175
}
176176

@@ -322,7 +322,7 @@ DB::ReadWriteBufferFromHTTPPtr RestCatalog::createReadBuffer(
322322
.create(credentials);
323323
};
324324

325-
LOG_TEST(log, "Requesting: {}", url.toString());
325+
LOG_DEBUG(log, "Requesting: {}", url.toString());
326326

327327
try
328328
{
@@ -440,7 +440,7 @@ RestCatalog::Namespaces RestCatalog::getNamespaces(const std::string & base_name
440440
{
441441
auto buf = createReadBuffer(config.prefix / NAMESPACES_ENDPOINT, params);
442442
auto namespaces = parseNamespaces(*buf, base_namespace);
443-
LOG_TEST(log, "Loaded {} namespaces in base namespace {}", namespaces.size(), base_namespace);
443+
LOG_DEBUG(log, "Loaded {} namespaces in base namespace {}", namespaces.size(), base_namespace);
444444
return namespaces;
445445
}
446446
catch (const DB::HTTPException & e)
@@ -468,7 +468,7 @@ RestCatalog::Namespaces RestCatalog::parseNamespaces(DB::ReadBuffer & buf, const
468468
String json_str;
469469
readJSONObjectPossiblyInvalid(json_str, buf);
470470

471-
LOG_TEST(log, "Received response: {}", json_str);
471+
LOG_DEBUG(log, "Received response: {}", json_str);
472472

473473
try
474474
{
@@ -594,7 +594,7 @@ bool RestCatalog::getTableMetadataImpl(
594594
const std::string & table_name,
595595
TableMetadata & result) const
596596
{
597-
LOG_TEST(log, "Checking table {} in namespace {}", table_name, namespace_name);
597+
LOG_DEBUG(log, "Checking table {} in namespace {}", table_name, namespace_name);
598598

599599
DB::HTTPHeaderEntries headers;
600600
if (result.requiresCredentials())
@@ -613,7 +613,7 @@ bool RestCatalog::getTableMetadataImpl(
613613

614614
if (buf->eof())
615615
{
616-
LOG_TEST(log, "Table doesn't exist (endpoint: {})", endpoint);
616+
LOG_DEBUG(log, "Table doesn't exist (endpoint: {})", endpoint);
617617
return false;
618618
}
619619

@@ -623,7 +623,7 @@ bool RestCatalog::getTableMetadataImpl(
623623
#ifdef DEBUG_OR_SANITIZER_BUILD
624624
/// This log message might contain credentials,
625625
/// so log it only for debugging.
626-
LOG_TEST(log, "Received metadata for table {}: {}", table_name, json_str);
626+
LOG_DEBUG(log, "Received metadata for table {}: {}", table_name, json_str);
627627
#endif
628628

629629
Poco::JSON::Parser parser;
@@ -641,7 +641,7 @@ bool RestCatalog::getTableMetadataImpl(
641641
{
642642
location = metadata_object->get("location").extract<String>();
643643
result.setLocation(location);
644-
LOG_TEST(log, "Location for table {}: {}", table_name, location);
644+
LOG_DEBUG(log, "Location for table {}: {}", table_name, location);
645645
}
646646
else
647647
{

0 commit comments

Comments
 (0)