Skip to content

Commit

Permalink
Update Handler.php (#2)
Browse files Browse the repository at this point in the history
Remove Hardcoded B2 Disk Reference
  • Loading branch information
Olimbot authored Apr 30, 2024
1 parent ca46743 commit ac08f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function write(LogRecord $record): void
$filename = $this->generateFileName($record->datetime);
$filepath = $this->getLogPath($filename);

if (!Storage::disk('b2')->append($filepath, $record->formatted)) {
if (!Storage::disk($this->disk)->append($filepath, $record->formatted)) {
Log::stack(['single'])->info('Tried to log the following message to S3' . PHP_EOL . $record->formatted);
}
}
Expand Down

0 comments on commit ac08f3e

Please sign in to comment.