Skip to content

Commit

Permalink
Fix the command being null in the CommandStarting event (#194)
Browse files Browse the repository at this point in the history
Fixes #193
  • Loading branch information
stayallive authored Feb 25, 2019
1 parent 1601d89 commit c75ac24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Sentry/Laravel/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ protected function queueJobProcessedHandler(JobProcessed $event)
protected function commandStartingHandler(CommandStarting $event)
{
Integration::configureScope(function (Scope $scope) use ($event): void {
$scope->setTag('command', $event->command);
if ($event->command) {
$scope->setTag('command', $event->command);
}
});
}

Expand Down

0 comments on commit c75ac24

Please sign in to comment.