Add description to debug logging. #1443

This commit is contained in:
James Cole 2018-05-31 21:13:07 +02:00
parent f2928e3d7d
commit 2ba6fa0dda

View File

@ -130,6 +130,7 @@ class ImportableConverter
*/ */
private function convertSingle(ImportTransaction $importable): array private function convertSingle(ImportTransaction $importable): array
{ {
Log::debug(sprintf('Description is: "%s"', $importable->description));
$amount = $importable->calculateAmount(); $amount = $importable->calculateAmount();
$foreignAmount = $importable->calculateForeignAmount(); $foreignAmount = $importable->calculateForeignAmount();
if ('' === $amount) { if ('' === $amount) {
@ -208,6 +209,8 @@ class ImportableConverter
$date = new Carbon; $date = new Carbon;
} }
$dateStr = $date->format('Y-m-d'); $dateStr = $date->format('Y-m-d');
return [ return [