Skip to content

Commit a78c579

Browse files
miccehedinmarickvantuil
authored andcommitted
Remove excessive logging
1 parent a75bab9 commit a78c579

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/TaskHandler.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Google\Cloud\Tasks\V2\RetryConfig;
88
use Illuminate\Contracts\Encryption\Encrypter;
99
use Illuminate\Queue\WorkerOptions;
10-
use Illuminate\Support\Facades\Log;
1110
use Illuminate\Support\Str;
1211
use Illuminate\Validation\ValidationException;
1312
use Safe\Exceptions\JsonException;
@@ -49,18 +48,11 @@ public function __construct(CloudTasksClient $client)
4948

5049
public function handle(?string $task = null): void
5150
{
52-
Log::debug(json_encode(request()->headers->all()));
53-
Log::debug(json_encode(request()->bearerToken()));
54-
Log::debug(json_encode(request()->getContent()));
55-
5651
$task = $this->captureTask($task);
57-
Log::debug(json_encode($task));
5852

5953
$this->loadQueueConnectionConfiguration($task);
60-
Log::debug(json_encode($this->config));
6154

6255
$this->setQueue();
63-
Log::debug(json_encode($this->queue));
6456

6557
if (!$this->config['app_engine']) {
6658
OpenIdVerificator::verify(request()->bearerToken(), $this->config);
@@ -84,9 +76,6 @@ private function captureTask($task): array
8476
$array = [];
8577
}
8678

87-
// $nameHeader = config('queue.connections.cloudtasks.app_engine')
88-
// ? 'X-AppEngine-TaskName'
89-
// : 'X-CloudTasks-TaskName';
9079
$taskName = request()->header('X-CloudTasks-TaskName') ?? request()->header('X-AppEngine-TaskName');
9180
$validator = validator([
9281
'json' => $task,

0 commit comments

Comments
 (0)