Skip to content

Commit df4f41c

Browse files
committed
CS
1 parent 70329b1 commit df4f41c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)