mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add some debug info
This commit is contained in:
parent
b248bd6d0c
commit
9a52cfbfbe
@ -283,7 +283,7 @@ class TransactionController extends Controller
|
|||||||
try {
|
try {
|
||||||
$transactionGroup = $this->groupRepository->store($data);
|
$transactionGroup = $this->groupRepository->store($data);
|
||||||
} catch (DuplicateTransactionException $e) {
|
} catch (DuplicateTransactionException $e) {
|
||||||
Log::warning('Caught a duplicate. Return error message.');
|
Log::warning('Caught a duplicate transaction. Return error message.');
|
||||||
// return bad validation message.
|
// return bad validation message.
|
||||||
// TODO use Laravel's internal validation thing to do this.
|
// TODO use Laravel's internal validation thing to do this.
|
||||||
$response = [
|
$response = [
|
||||||
|
@ -428,7 +428,7 @@ class TransactionJournalFactory
|
|||||||
->first();
|
->first();
|
||||||
}
|
}
|
||||||
if (null !== $result) {
|
if (null !== $result) {
|
||||||
Log::warning('Found a duplicate!');
|
Log::warning(sprintf('Found a duplicate in errorIfDuplicate because hash %s is not unique!', $hash));
|
||||||
throw new DuplicateTransactionException(sprintf('Duplicate of transaction #%d.', $result->transactionJournal->transaction_group_id));
|
throw new DuplicateTransactionException(sprintf('Duplicate of transaction #%d.', $result->transactionJournal->transaction_group_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -346,6 +346,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
|||||||
Log::warning('Group repository caught group factory with a duplicate exception!');
|
Log::warning('Group repository caught group factory with a duplicate exception!');
|
||||||
throw new DuplicateTransactionException($e->getMessage());
|
throw new DuplicateTransactionException($e->getMessage());
|
||||||
} catch(FireflyException $e) {
|
} catch(FireflyException $e) {
|
||||||
|
Log::warning('Group repository caught group factory with an exception!');
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
Log::error($e->getTraceAsString());
|
Log::error($e->getTraceAsString());
|
||||||
throw new FireflyException($e->getMessage());
|
throw new FireflyException($e->getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user