mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Update some logging.
This commit is contained in:
		| @@ -36,9 +36,9 @@ class PiggyBankEventFactory | ||||
| { | ||||
|     public function create(TransactionJournal $journal, ?PiggyBank $piggyBank): void | ||||
|     { | ||||
|         app('log')->debug(sprintf('Now in PiggyBankEventCreate for a %s', $journal->transactionType->type)); | ||||
|         Log::debug(sprintf('Now in PiggyBankEventCreate for a %s', $journal->transactionType->type)); | ||||
|         if (!$piggyBank instanceof PiggyBank) { | ||||
|             app('log')->debug('Piggy bank is null'); | ||||
|             Log::debug('Piggy bank is null'); | ||||
| 
 | ||||
|             return; | ||||
|         } | ||||
| @@ -49,7 +49,7 @@ class PiggyBankEventFactory | ||||
| 
 | ||||
|         $amount     = $piggyRepos->getExactAmount($piggyBank, $journal); | ||||
|         if (0 === bccomp($amount, '0')) { | ||||
|             app('log')->debug('Amount is zero, will not create event.'); | ||||
|             Log::debug('Amount is zero, will not create event.'); | ||||
| 
 | ||||
|             return; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user