Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunluedeke committed Jun 5, 2024
1 parent 7363fc5 commit a80fea1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Logging/Handlers/DailyFileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(bool $deduplicate, Level $level, Config $config)
{
$name = storage_path($config->daily_file_path ?? 'logs/log_{timespan}.log');
if (str_contains($name, '{timespan}')) {
$days = (int)($config->daily_file_days ?? 7);
$days = (int) ($config->daily_file_days ?? 7);
$name = str_replace(
'{timespan}',
$days > 1 ?
Expand Down
1 change: 0 additions & 1 deletion src/Logging/Handlers/EmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Monolog\Handler\WhatFailureGroupHandler;
use Monolog\Level;
use Monolog\LogRecord;
use SytxLabs\ErrorLogger\Enums\ErrorLogEmailPriority;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
use SytxLabs\ErrorLogger\Support\Config;
Expand Down
1 change: 0 additions & 1 deletion src/Support/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ public function __construct()
$this->telegram_chat_id = config('error-logger.telegram.chat_id', '');
}
}

0 comments on commit a80fea1

Please sign in to comment.