Skip to content

Commit

Permalink
Merge pull request #175 from j-fulbright/override-emergency-logger-wi…
Browse files Browse the repository at this point in the history
…th-laravel

Overrides emergency logger if it is defaulted
  • Loading branch information
mnapoli authored Feb 26, 2025
2 parents bb0b245 + 0194aa6 commit 1796c69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BrefServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ protected function fixDefaultConfiguration()
if (Config::get('logging.default') === 'stack') {
Config::set('logging.default', 'stderr');
}

if (Config::get('logging.channels.emergency.path') === storage_path('logs/laravel.log')) {
Config::set('logging.channels.emergency', Config::get('logging.channels.stderr'));
}
}

private function fixAwsCredentialsConfig(): void
Expand Down

0 comments on commit 1796c69

Please sign in to comment.