mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Replace log.
This commit is contained in:
@@ -26,6 +26,7 @@ namespace FireflyIII\Events;
|
||||
|
||||
use FireflyIII\Models\TransactionGroup;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class DestroyedTransactionGroup.
|
||||
@@ -39,6 +40,6 @@ class DestroyedTransactionGroup extends Event
|
||||
*/
|
||||
public function __construct(public TransactionGroup $transactionGroup)
|
||||
{
|
||||
app('log')->debug(sprintf('Now in %s', __METHOD__));
|
||||
Log::debug(sprintf('Now in %s', __METHOD__));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ use FireflyIII\Models\PiggyBank;
|
||||
use FireflyIII\Models\TransactionGroup;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class ChangedAmount
|
||||
@@ -45,7 +46,7 @@ class ChangedAmount extends Event
|
||||
*/
|
||||
public function __construct(PiggyBank $piggyBank, string $amount, public ?TransactionJournal $transactionJournal, public ?TransactionGroup $transactionGroup)
|
||||
{
|
||||
app('log')->debug(sprintf('Created piggy bank event for piggy bank #%d with amount %s', $piggyBank->id, $amount));
|
||||
Log::debug(sprintf('Created piggy bank event for piggy bank #%d with amount %s', $piggyBank->id, $amount));
|
||||
$this->piggyBank = $piggyBank;
|
||||
$this->amount = $amount;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace FireflyIII\Events\Model\Rule;
|
||||
|
||||
use FireflyIII\Models\RuleAction;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class RuleActionFailedOnArray
|
||||
@@ -36,6 +37,6 @@ class RuleActionFailedOnArray
|
||||
|
||||
public function __construct(public RuleAction $ruleAction, public array $journal, public string $error)
|
||||
{
|
||||
app('log')->debug('Created new RuleActionFailedOnArray');
|
||||
Log::debug('Created new RuleActionFailedOnArray');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace FireflyIII\Events\Model\Rule;
|
||||
use FireflyIII\Models\RuleAction;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class RuleActionFailedOnObject
|
||||
@@ -37,6 +38,6 @@ class RuleActionFailedOnObject
|
||||
|
||||
public function __construct(public RuleAction $ruleAction, public TransactionJournal $journal, public string $error)
|
||||
{
|
||||
app('log')->debug('Created new RuleActionFailedOnObject');
|
||||
Log::debug('Created new RuleActionFailedOnObject');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ use Illuminate\Broadcasting\PrivateChannel;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class RequestedReportOnJournals
|
||||
@@ -44,7 +45,7 @@ class RequestedReportOnJournals
|
||||
*/
|
||||
public function __construct(public int $userId, public Collection $groups)
|
||||
{
|
||||
app('log')->debug('In event RequestedReportOnJournals.');
|
||||
Log::debug('In event RequestedReportOnJournals.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace FireflyIII\Events\Test;
|
||||
|
||||
use FireflyIII\Notifications\Notifiables\OwnerNotifiable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class OwnerTestNotificationChannel
|
||||
{
|
||||
@@ -38,7 +39,7 @@ class OwnerTestNotificationChannel
|
||||
*/
|
||||
public function __construct(string $channel, public OwnerNotifiable $owner)
|
||||
{
|
||||
app('log')->debug(sprintf('Triggered OwnerTestNotificationChannel("%s")', $channel));
|
||||
Log::debug(sprintf('Triggered OwnerTestNotificationChannel("%s")', $channel));
|
||||
$this->channel = $channel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace FireflyIII\Events\Test;
|
||||
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class UserTestNotificationChannel
|
||||
{
|
||||
@@ -38,7 +39,7 @@ class UserTestNotificationChannel
|
||||
*/
|
||||
public function __construct(string $channel, public User $user)
|
||||
{
|
||||
app('log')->debug(sprintf('Triggered UserTestNotificationChannel("%s")', $channel));
|
||||
Log::debug(sprintf('Triggered UserTestNotificationChannel("%s")', $channel));
|
||||
$this->channel = $channel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user