From eea41d9655b8247762b1bf1de4d900d166fd63a6 Mon Sep 17 00:00:00 2001 From: Vitaliy Ryaboy Date: Fri, 31 Jul 2020 10:05:21 +0200 Subject: [PATCH] [Lock] downgrade log.info to log.debug --- src/Symfony/Component/Lock/Lock.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Lock/Lock.php b/src/Symfony/Component/Lock/Lock.php index 673238a9fb..411246d98e 100644 --- a/src/Symfony/Component/Lock/Lock.php +++ b/src/Symfony/Component/Lock/Lock.php @@ -78,7 +78,7 @@ final class Lock implements LockInterface, LoggerAwareInterface } $this->dirty = true; - $this->logger->info('Successfully acquired the "{resource}" lock.', ['resource' => $this->key]); + $this->logger->debug('Successfully acquired the "{resource}" lock.', ['resource' => $this->key]); if ($this->ttl) { $this->refresh(); @@ -96,7 +96,7 @@ final class Lock implements LockInterface, LoggerAwareInterface return true; } catch (LockConflictedException $e) { $this->dirty = false; - $this->logger->notice('Failed to acquire the "{resource}" lock. Someone else already acquired the lock.', ['resource' => $this->key]); + $this->logger->info('Failed to acquire the "{resource}" lock. Someone else already acquired the lock.', ['resource' => $this->key]); if ($blocking) { throw $e; @@ -135,7 +135,7 @@ final class Lock implements LockInterface, LoggerAwareInterface throw new LockExpiredException(sprintf('Failed to put off the expiration of the "%s" lock within the specified time.', $this->key)); } - $this->logger->info('Expiration defined for "{resource}" lock for "{ttl}" seconds.', ['resource' => $this->key, 'ttl' => $ttl]); + $this->logger->debug('Expiration defined for "{resource}" lock for "{ttl}" seconds.', ['resource' => $this->key, 'ttl' => $ttl]); } catch (LockConflictedException $e) { $this->dirty = false; $this->logger->notice('Failed to define an expiration for the "{resource}" lock, someone else acquired the lock.', ['resource' => $this->key]);