Skip to content

Commit 5c5dbc5

Browse files
author
James William Dumay
authored
Update CloudTasksQueue.php
1 parent 35e6b27 commit 5c5dbc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CloudTasksQueue.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Google\Protobuf\Timestamp;
1212
use Illuminate\Contracts\Queue\Queue as QueueContract;
1313
use Illuminate\Queue\Queue as LaravelQueue;
14+
use Illuminate\Support\Facades\Log;
1415
use Illuminate\Support\Str;
1516
use Stackkit\LaravelGoogleCloudTasksQueue\Events\TaskCreated;
1617
use function Safe\json_decode;
@@ -185,7 +186,9 @@ private function taskName(string $queueName, string $uuid, string $displayName)
185186
$queueId = $queueName;
186187
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
187188
$displayName = str_replace("\\", "-", $displayName);
188-
return sprintf('projects/%s/locations/%s/queues/%s/tasks/%s-%s', $projectId, $location, $queueId, $uuid, $displayName);
189+
$taskName = sprintf('projects/%s/locations/%s/queues/%s/tasks/%s-%s', $projectId, $location, $queueId, $uuid, $displayName);
190+
Log::info('Task name '. $taskName);
191+
return $taskName;
189192
}
190193

191194
private function extractPayload(string $payload): array

0 commit comments

Comments
 (0)