From c4b74a91ccad1734d61dc5a59cb362ee27d91d9c Mon Sep 17 00:00:00 2001 From: JaySon-Huang Date: Sun, 14 Jul 2024 15:26:08 +0800 Subject: [PATCH] Refine logging Signed-off-by: JaySon-Huang --- dbms/src/TiDB/Schema/SchemaBuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/src/TiDB/Schema/SchemaBuilder.cpp b/dbms/src/TiDB/Schema/SchemaBuilder.cpp index e315052288a..125a18e783d 100644 --- a/dbms/src/TiDB/Schema/SchemaBuilder.cpp +++ b/dbms/src/TiDB/Schema/SchemaBuilder.cpp @@ -1037,11 +1037,11 @@ template void SchemaBuilder::applyDropSchema(const String & db_name) { GET_METRIC(tiflash_schema_internal_ddl_count, type_drop_db).Increment(); - LOG_INFO(log, "Tombstoning database {}", db_name); + LOG_INFO(log, "Tombstone database begin, db_name={}", db_name); auto db = context.tryGetDatabase(db_name); if (db == nullptr) { - LOG_INFO(log, "Database {} does not exists", db_name); + LOG_INFO(log, "Database does not exists, db_name={}", db_name); return; } @@ -1058,7 +1058,7 @@ void SchemaBuilder::applyDropSchema(const String & db_name) auto tombstone = PDClientHelper::getTSO(tmt_context.getPDClient(), PDClientHelper::get_tso_maxtime); db->alterTombstone(context, tombstone, /*new_db_info*/ nullptr); // keep the old db_info - LOG_INFO(log, "Tombstoned database {}, tombstone={}", db_name, tombstone); + LOG_INFO(log, "Tombstone database end, db_name={} tombstone={}", db_name, tombstone); } template