Skip to content
Permalink
Browse files

Remove deprecated logger() calls

  • Loading branch information...
cleptric committed Jul 27, 2017
1 parent 94f7011 commit c6fdaf67af5165db9c5e0ed69d0c4c266c3f51f6
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Database/Connection.php
  2. +1 −1 src/Database/Log/LoggingStatement.php
@@ -857,7 +857,7 @@ public function log($sql)
{
$query = new LoggedQuery();
$query->query = $sql;
$this->logger()->log($query);
$this->getLogger()->log($query);
}
/**
@@ -870,7 +870,7 @@ public function log($sql)
protected function _newLogger(StatementInterface $statement)
{
$log = new LoggingStatement($statement, $this->getDriver());
$log->logger($this->logger());
$log->setLogger($this->getLogger());
return $log;
}
@@ -81,7 +81,7 @@ protected function _log($query, $params, $startTime)
$query->took = round((microtime(true) - $startTime) * 1000, 0);
$query->params = $params ?: $this->_compiledParams;
$query->query = $this->queryString;
$this->logger()->log($query);
$this->getLogger()->log($query);
}
/**

0 comments on commit c6fdaf6

Please sign in to comment.
You can’t perform that action at this time.