Skip to content

Commit

Permalink
🔊 reduce mass-logging of mastodon connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu committed Jan 1, 2025
1 parent 686b94d commit 492c8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function fetchProfileInformation(): ?array {
. {$mastodonServer->domain}' and mastodon_id#{$this->user->socialProfile->mastodon_id}");
if (in_array($exception->getCode(), [401, 404, 410])) {
$this->removeMastodonInformation();
} else {
} elseif(config('logging.level') === 'debug') {
report($exception);
}
}
Expand Down
1 change: 1 addition & 0 deletions config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

'default' => env('LOG_CHANNEL', 'daily'),
'level' => env('LOG_LEVEL', 'info'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 492c8ae

Please sign in to comment.