From 8aa5465b2720fa1ac65972444334b400471ca3f2 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sat, 18 Apr 2015 07:50:56 +1000 Subject: [PATCH] Fail softly, fixes https://github.com/octobercms/install/issues/67 --- modules/system/models/EventLog.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/models/EventLog.php b/modules/system/models/EventLog.php index d70f9fc32..a8d34157c 100644 --- a/modules/system/models/EventLog.php +++ b/modules/system/models/EventLog.php @@ -2,6 +2,7 @@ use Str; use Model; +use Exception; /** * Model for logging system errors and debug trace messages @@ -38,7 +39,10 @@ class EventLog extends Model $record->details = (array) $details; } - $record->save(); + try { + $record->save(); + } + catch (Exception $ex) {} return $record; }