| Conditions | 2 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function log($query, array $bindings = null, $time = null) |
||
| 54 | { |
||
| 55 | ++$this->queryNumber; |
||
| 56 | |||
| 57 | try { |
||
| 58 | $sqlQuery = $this->query->get($this->queryNumber, $query, $bindings, $time); |
||
| 59 | $this->writer->save($sqlQuery); |
||
| 60 | } catch (Exception $e) { |
||
| 61 | $this->app['log']->notice("Cannot log query nr {$this->queryNumber}. Exception:" . PHP_EOL . $e); |
||
| 62 | } |
||
| 65 |