From 7c0837c432e309d1ca82c2d0b6a2554cd6d779aa Mon Sep 17 00:00:00 2001 From: cyppe Date: Sat, 20 Jan 2024 15:21:12 +0100 Subject: [PATCH] Remove a bit too verbose output to logs. --- src/Repositories/RedisBatchRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repositories/RedisBatchRepository.php b/src/Repositories/RedisBatchRepository.php index 95b2e26..ca994d8 100644 --- a/src/Repositories/RedisBatchRepository.php +++ b/src/Repositories/RedisBatchRepository.php @@ -132,7 +132,7 @@ protected function executeWithLock( string $lockKey, Closure $callback, $retryCo if ( $this->acquireLock( $lockKey ) ) { try { if ( $attempts > 2 ) { - Log::info( "Finally got lock. Attempt: " . $attempts ); + // Log::info( "Finally got lock. Attempt: " . $attempts ); } return $callback(); } catch ( \Exception $e ) { @@ -207,7 +207,7 @@ public function markAsFinished( string $batchId ) $batchData['finished_at'] = CarbonImmutable::now()->getTimestamp(); Redis::set( "batch:$batchId", serialize( $batchData ) ); - Log::debug( "Batch marked as finished: " . $batchId . " with finished_at: " . $batchData['finished_at'] ); + //Log::debug( "Batch marked as finished: " . $batchId . " with finished_at: " . $batchData['finished_at'] ); }, 100, 200 ); }