Skip to content

Commit

Permalink
Remove a bit too verbose output to logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyppe committed Jan 20, 2024
1 parent b7bb9d4 commit 7c0837c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repositories/RedisBatchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 7c0837c

Please sign in to comment.