File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/Sentry/Laravel/Features Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,6 @@ public function handleScheduledTaskStarting(ScheduledTaskStarting $event): void
145145 // When a closure is scheduled both the command name and description are `null`
146146 $ name = $ this ->getCommandNameForScheduled ($ event ->task ) ?? $ event ->task ->description ?? 'Closure ' ;
147147
148- dump ($ name );
149-
150148 $ context = TransactionContext::make ()
151149 ->setName ($ name )
152150 ->setSource (TransactionSource::task ())
@@ -304,7 +302,7 @@ private function getCommandNameForScheduled(SchedulingEvent $scheduled): ?string
304302 return null ;
305303 }
306304
307- // The command string always starts with the PHP binary, so we remove it since it's not relevant to the slug
305+ // The command string always starts with the PHP binary and artisan binary , so we remove it since it's not relevant to the name
308306 return trim (
309307 Str::after ($ scheduled ->command , ConsoleApplication::phpBinary () . ' ' . ConsoleApplication::artisanBinary ())
310308 );
You can’t perform that action at this time.
0 commit comments