From 7694d7c188b7b73c4fc3aae4e8d72c4c77a9853d Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Fri, 1 Jul 2022 21:05:48 +0300 Subject: [PATCH] Changed guid errors to INFO instead of warning, as some of those errors cannot be corrected by user. --- src/Libs/Guid.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Libs/Guid.php b/src/Libs/Guid.php index 3cf0cece..7fbd6663 100644 --- a/src/Libs/Guid.php +++ b/src/Libs/Guid.php @@ -64,7 +64,7 @@ final class Guid implements JsonSerializable, Stringable } if (false === is_string($key)) { - $this->getLogger()->warning( + $this->getLogger()->info( 'Ignoring [%(backend)] %(item.type) [%(item.title)] external id. Unexpected key type [%(given)] was given.', [ 'key' => (string)$key, @@ -76,7 +76,7 @@ final class Guid implements JsonSerializable, Stringable } if (null === ($supported[$key] ?? null)) { - $this->getLogger()->warning( + $this->getLogger()->info( 'Ignoring [%(backend)] %(item.type) [%(item.title)] [%(key)] external id. Not supported.', [ 'key' => $key, @@ -87,7 +87,7 @@ final class Guid implements JsonSerializable, Stringable } if ($supported[$key] !== ($valueType = get_debug_type($value))) { - $this->getLogger()->warning( + $this->getLogger()->info( 'Ignoring [%(backend)] %(item.type) [%(item.title)] [%(key)] external id. Unexpected value type.', [ 'key' => $key, @@ -103,7 +103,7 @@ final class Guid implements JsonSerializable, Stringable if (null !== (self::VALIDATE_GUID[$key] ?? null)) { if (1 !== preg_match(self::VALIDATE_GUID[$key]['pattern'], $value)) { - $this->getLogger()->warning( + $this->getLogger()->info( 'Ignoring [%(backend)] %(item.type) [%(item.title)] [%(key)] external id. Unexpected value expecting [%(expected)] but got [%(given)].', [ 'key' => $key,