Skip to content

Commit 2ead59c

Browse files
authored
flush shared log context (#513)
1 parent 0fcec14 commit 2ead59c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Listeners/FlushLogContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public function handle($event): void
1616
return;
1717
}
1818

19+
if (method_exists($event->sandbox['log'], 'flushSharedContext')) {
20+
$event->sandbox['log']->flushSharedContext();
21+
}
22+
1923
if (method_exists($event->sandbox['log']->driver(), 'withoutContext')) {
2024
$event->sandbox['log']->withoutContext();
2125
}

0 commit comments

Comments
 (0)