protected function _logQuery(Query $query, LoggerInterface $logger)
    {
        if (!$this->getDriver()->isQueryLoggingEnabled()) {
            return;
        }

        $logger->debug($query->endpoint(), [
            'params' => $query->where()
        ]);
    }