mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Add extra logging for common error on demo site [skip ci]
This commit is contained in:
@@ -113,7 +113,8 @@ class TransactionFactory
|
|||||||
$destinationAccount = $this->findAccount($destinationType, $data['destination_id'], $data['destination_name']);
|
$destinationAccount = $this->findAccount($destinationType, $data['destination_id'], $data['destination_name']);
|
||||||
|
|
||||||
if (null === $sourceAccount || null === $destinationAccount) {
|
if (null === $sourceAccount || null === $destinationAccount) {
|
||||||
throw new FireflyException('Could not determine source or destination account.', $data);
|
Log::error('Info about source/dest:', $data);
|
||||||
|
throw new FireflyException('Could not determine source or destination account.');
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::debug(sprintf('Source type is "%s", destination type is "%s"', $sourceAccount->accountType->type, $destinationAccount->accountType->type));
|
Log::debug(sprintf('Source type is "%s", destination type is "%s"', $sourceAccount->accountType->type, $destinationAccount->accountType->type));
|
||||||
|
Reference in New Issue
Block a user