Refactor code to use loggy() function for server storage check logging

This commit is contained in:
Andras Bacsai
2024-10-25 17:46:39 +02:00
parent 50519a86a9
commit 29ad965656
2 changed files with 3 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ use App\Notifications\Channels\TelegramChannel;
use App\Notifications\Internal\GeneralNotification;
use DanHarrin\LivewireRateLimiting\Exceptions\TooManyRequestsException;
use Illuminate\Database\UniqueConstraintViolationException;
use Illuminate\Log\LogManager;
use Illuminate\Mail\Message;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Process\Pool;
@@ -4013,7 +4014,7 @@ function loadConfigFromGit(string $repository, string $branch, string $base_dire
}
}
function loggy($message = null, array $context = [])
function loggy($message = null, array $context = []): LogManager
{
if (! isDev()) {
return;