diff options
Diffstat (limited to 'core/Tracker/Model.php')
-rw-r--r-- | core/Tracker/Model.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Tracker/Model.php b/core/Tracker/Model.php index 6e77c4c6f5..f7a8406a1c 100644 --- a/core/Tracker/Model.php +++ b/core/Tracker/Model.php @@ -10,7 +10,9 @@ namespace Piwik\Tracker; use Exception; use Piwik\Common; +use Piwik\Container\StaticContainer; use Piwik\Tracker; +use Psr\Log\LoggerInterface; class Model { @@ -76,7 +78,9 @@ class Model try { $this->getDb()->query($sql, $sqlBind); } catch (Exception $e) { - Common::printDebug("There was an error while updating the Conversion: " . $e->getMessage()); + StaticContainer::get(LoggerInterface::class)->error("There was an error while updating the Conversion: {exception}", [ + 'exception' => $e, + ]); return false; } |