We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e716cb commit 33568a5Copy full SHA for 33568a5
test/Sentry/Features/LogLogsIntegrationTest.php
@@ -6,6 +6,7 @@
6
use Illuminate\Support\Facades\Log;
7
use Sentry\Laravel\Tests\TestCase;
8
use Sentry\Logs\LogLevel;
9
+use function Sentry\logger;
10
11
class LogLogsIntegrationTest extends TestCase
12
{
@@ -107,6 +108,10 @@ public function testLogChannelAddsContextAsAttributes(): void
107
108
/** @return \Sentry\Logs\Log[] */
109
private function getAndFlushCapturedLogs(): array
110
- return \Sentry\logger()->aggregator()->flushWithoutEvent();
111
+ $logs = logger()->aggregator()->all();
112
+
113
+ logger()->aggregator()->flush();
114
115
+ return $logs;
116
}
117
0 commit comments