From 5102342814ae0b56e1b55ba759dc9f322b5dc0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20R=C3=BChlmann?= <39726-SteffenR@users.noreply.drupalcode.org> Date: Mon, 7 Apr 2025 15:07:25 +0200 Subject: [PATCH] Issue #3517736: Less strict logging in case field does not exist in Swiftype document type --- src/Plugin/search_api/backend/SwiftypeBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php index e316996..80bea1a 100644 --- a/src/Plugin/search_api/backend/SwiftypeBackend.php +++ b/src/Plugin/search_api/backend/SwiftypeBackend.php @@ -921,7 +921,7 @@ class SwiftypeBackend extends BackendPluginBase implements SwiftypeBackendInterf foreach (array_keys($document_type_fields) as $document_type) { if (!isset($document_type_fields[$document_type][$field_names[$field]])) { // Field does not exist in Swiftype document type. - $this->logger->warning('Field @field is not defined in document type @type', [ + $this->logger->info('Field @field is not defined in document type @type', [ '@field' => $field, '@type' => $document_type, ] @@ -1021,7 +1021,7 @@ class SwiftypeBackend extends BackendPluginBase implements SwiftypeBackendInterf foreach (array_keys($document_type_fields) as $document_type) { if (!isset($document_type_fields[$document_type][$field_names[$field]])) { // Field does not exist in Swiftype document type. - $this->logger->warning('Field @field is not defined in document type @type', [ + $this->logger->info('Field @field is not defined in document type @type', [ '@field' => $field, '@type' => $document_type, ] -- GitLab