From 70356009849dc2105ce6fec54b687683c8cefe28 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 5 Aug 2016 21:50:49 +0200 Subject: [PATCH] Add some logging for #283 --- app/Models/Preference.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Preference.php b/app/Models/Preference.php index b19d4458d7..15ddef16e6 100644 --- a/app/Models/Preference.php +++ b/app/Models/Preference.php @@ -15,7 +15,7 @@ use Crypt; use FireflyIII\Exceptions\FireflyException; use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Database\Eloquent\Model; - +use Log; /** * FireflyIII\Models\Preference * @@ -54,6 +54,7 @@ class Preference extends Model try { $data = Crypt::decrypt($value); } catch (DecryptException $e) { + Log::error('Could not decrypt preference.', ['id' => $this->id,'name' => $this->name,'data' => $this->data]); throw new FireflyException('Could not decrypt preference #' . $this->id . '.'); }