diff --git a/dbms/include/DB/Dictionaries/MySQLDictionarySource.h b/dbms/include/DB/Dictionaries/MySQLDictionarySource.h index c0ee3974d49..e791246c35c 100644 --- a/dbms/include/DB/Dictionaries/MySQLDictionarySource.h +++ b/dbms/include/DB/Dictionaries/MySQLDictionarySource.h @@ -65,6 +65,8 @@ public: } private: + Logger * log = &Logger::get("MySQLDictionarySource"); + mysqlxx::DateTime getLastModification() const { const auto Update_time_idx = 12; @@ -74,6 +76,9 @@ private: { auto connection = pool.Get(); auto query = connection->query("SHOW TABLE STATUS LIKE '%" + strconvert::escaped_for_like(table) + "%';"); + + LOG_TRACE(log, query.str()); + auto result = query.use(); if (auto row = result.fetch()) @@ -144,6 +149,8 @@ private: writeChar(';', out); } + LOG_TRACE(log, query); + return query; }