Skip to content

Commit af64a4b

Browse files
author
palPalani
committed
Remove debug logs
1 parent ab5f525 commit af64a4b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/Sqs/Queue.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Queue\Jobs\SqsJob;
77
use Illuminate\Queue\SqsQueue;
88
use Illuminate\Support\Facades\Config;
9-
use Illuminate\Support\Facades\Log;
109
use Illuminate\Support\Str;
1110
use palPalani\SqsQueueReader\Jobs\DispatcherJob;
1211

@@ -82,18 +81,15 @@ public function pop($queue = null)
8281
]);
8382

8483
if (isset($response['Messages']) && count($response['Messages']) > 0) {
85-
Log::debug('Messages==', [$response['Messages']]);
8684
$class = (array_key_exists($queueId, $this->container['config']->get('sqs-queue-reader.handlers')))
8785
? $this->container['config']->get('sqs-queue-reader.handlers')[$queueId]['class']
8886
: $this->container['config']->get('sqs-queue-reader.default-handler')['class'];
8987

90-
Log::debug('Count, class==', [$count, $class]);
9188
if ($count === 1) {
9289
$response = $this->modifySinglePayload($response['Messages'][0], $class);
9390
} else {
9491
$response = $this->modifyMultiplePayload($response['Messages'], $class);
9592
}
96-
Log::debug('New $responseV2==', [$response]);
9793

9894
return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue);
9995
}
@@ -143,8 +139,6 @@ private function modifyMultiplePayload($payload, $class)
143139
$attributes = [];
144140

145141
foreach ($payload as $k => $item) {
146-
//Log::debug('Each Messages==', [$item]);
147-
//$body[] = json_decode($item['Body'], true);
148142
$body[$k] = [
149143
'messages' => json_decode($item['Body'], true),
150144
'attributes' => $item['Attributes'],

src/SqsQueueReaderServiceProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ public function boot(): void
3636
$event->job->delete();
3737
} else {
3838
$data = $event->job->payload();
39-
Log::debug('Job payload==', [$data]);
4039

4140
$batchIds = array_column($data['data'], 'batchIds');
42-
Log::debug('Job array_column==', [$batchIds]);
4341
$batchIds = array_chunk($batchIds, 10);
44-
Log::debug('Job array_chunk==', [$batchIds]);
4542

4643
$client = new SqsClient([
4744
//'profile' => 'default',

0 commit comments

Comments
 (0)