Skip to content

Commit b361587

Browse files
committed
flush all log contexts
1 parent 43a9c06 commit b361587

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
@@ -22,5 +22,9 @@ public function handle($event): void
2222
if (method_exists($event->sandbox['log']->driver(), 'withoutContext')) {
2323
$event->sandbox['log']->withoutContext();
2424
}
25+
26+
if (method_exists($event->sandbox['log'], 'withoutContext')) {
27+
$event->sandbox['log']->withoutContext();
28+
}
2529
}
2630
}

0 commit comments

Comments
 (0)