Skip to content

Commit

Permalink
Fix landing content
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Aug 27, 2023
1 parent 2082779 commit c3965a8
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 144 deletions.
11 changes: 11 additions & 0 deletions app/Modules/Sentry/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

namespace App\Modules\Sentry;

use Sentry\SentrySdk;

trait Common
{
public function setupSentryLogger()
Expand All @@ -20,4 +22,13 @@ function sentryReport()
report($e);
}
}

/** @test */
function sentryEvent()
{
$currentHub = SentrySdk::getCurrentHub();
$client = $currentHub->getClient();

$eventId = $currentHub->captureMessage('This is a test message from the Sentry bundle');
}
}
2 changes: 1 addition & 1 deletion config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
'handler' => \Monolog\Handler\SocketHandler::class,
'formatter' => \Monolog\Formatter\JsonFormatter::class,
'handler_with' => [
'connectionString' => env('LOG_SOCKET_URL', '127.0.0.1:9913'),
'connectionString' => env('LOG_SOCKET_URL', '127.0.0.1:9912'),
],
],

Expand Down
Loading

0 comments on commit c3965a8

Please sign in to comment.