MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getQueryLog

Method getQueryLog

src/Interpreters/Context.cpp:6181–6189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6179
6180
6181std::shared_ptr<QueryLog> Context::getQueryLog() const
6182{
6183 SharedLockGuard lock(shared->mutex);
6184
6185 if (!shared->system_logs)
6186 return {};
6187
6188 return shared->system_logs->query_log;
6189}
6190
6191std::shared_ptr<QueryMetricLog> Context::getQueryMetricLog() const
6192{

Callers 4

logQueryStartFunction · 0.80
logQueryFinishImplFunction · 0.80
logQueryExceptionFunction · 0.80
logExceptionBeforeStartFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected