Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-134

Doctrine\DBAL\Connection::query() no logging

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7, 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Doctrine\DBAL\Connection::query() does not use SqlLogger.

      I guess it may be fixed like this:

          public function query()
          {
              $this->connect();
      
              $args = func_get_args();
      
              $logger = $this->getConfiguration()->getSQLLogger();
              if ($logger) {
                  $logger->startQuery($args[0]);
              }
      
              $statement = call_user_func_array(array($this->_conn, 'query'), $args);
      
              if ($logger) {
                  $logger->stopQuery();
              }
      
              return $statement;
          }
      

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Kirill chEbba Chebunin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: