Skip to content

Commit

Permalink
flush shared context
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 11, 2024
1 parent 8bb98e3 commit dbce9d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Queue/QueueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ protected function registerWorker()
};

$resetScope = function () use ($app) {
$app['log']->flushSharedContext();

if (method_exists($app['log'], 'withoutContext')) {
$app['log']->withoutContext();
}
Expand Down

0 comments on commit dbce9d0

Please sign in to comment.