Skip to content

Commit

Permalink
Fix bug in extras functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow committed Nov 26, 2021
1 parent b0150fb commit c9b5c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FilebeatLoggerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __invoke(array $config): FilebeatLogger
$channel = $config['channel'] ?? 'missing channel name';

return ($config['rotating'] ?? false)
? RotatingFilebeatLogger::createLogger($channel, $config['stream'] ?? 'storage/logs/laravel.log')
: FilebeatLogger::createLogger($channel, $config['stream'] ?? 'php://stdout');
? RotatingFilebeatLogger::createLogger($channel, $config['stream'] ?? 'storage/logs/laravel.log', $config['extras'] ?? [])
: FilebeatLogger::createLogger($channel, $config['stream'] ?? 'php://stdout', $config['extras'] ?? []);
}
}

0 comments on commit c9b5c9b

Please sign in to comment.