From 0444ad5221cdcf8cf7a69583422716bc20d29d21 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 3 Sep 2017 13:02:19 +0200 Subject: [PATCH] Debug message for #797 --- app/Import/Storage/ImportSupport.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Import/Storage/ImportSupport.php b/app/Import/Storage/ImportSupport.php index 56e8f9393e..827150e31f 100644 --- a/app/Import/Storage/ImportSupport.php +++ b/app/Import/Storage/ImportSupport.php @@ -296,12 +296,15 @@ trait ImportSupport */ private function hashAlreadyImported(string $hash): bool { - $json = json_encode($hash); + $json = json_encode($hash); + /** @var TransactionJournalMeta $entry */ $entry = TransactionJournalMeta::leftJoin('transaction_journals', 'transaction_journals.id', '=', 'journal_meta.transaction_journal_id') ->where('data', $json) ->where('name', 'importHash') ->first(); if (!is_null($entry)) { + Log::debug(sprintf('A journal with hash %s has already been imported (spoiler: it\'s journal #%d)', $hash, $entry->transaction_journal_id)); + return true; }