Skip to content

Commit c3965a8

Browse files
committed
Fix landing content
1 parent 2082779 commit c3965a8

File tree

4 files changed

+209
-144
lines changed

4 files changed

+209
-144
lines changed

app/Modules/Sentry/Common.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
namespace App\Modules\Sentry;
55

6+
use Sentry\SentrySdk;
7+
68
trait Common
79
{
810
public function setupSentryLogger()
@@ -20,4 +22,13 @@ function sentryReport()
2022
report($e);
2123
}
2224
}
25+
26+
/** @test */
27+
function sentryEvent()
28+
{
29+
$currentHub = SentrySdk::getCurrentHub();
30+
$client = $currentHub->getClient();
31+
32+
$eventId = $currentHub->captureMessage('This is a test message from the Sentry bundle');
33+
}
2334
}

config/logging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
'handler' => \Monolog\Handler\SocketHandler::class,
6969
'formatter' => \Monolog\Formatter\JsonFormatter::class,
7070
'handler_with' => [
71-
'connectionString' => env('LOG_SOCKET_URL', '127.0.0.1:9913'),
71+
'connectionString' => env('LOG_SOCKET_URL', '127.0.0.1:9912'),
7272
],
7373
],
7474

0 commit comments

Comments
 (0)