dbms: more logging in MySQLDictionarySource [#METR-17508].

This commit is contained in:
Alexey Milovidov 2015-08-12 00:29:44 +03:00
parent 6448560938
commit 8d8fa9d0fd

View File

@ -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;
}