From d60afb44011ac9ebdd4b9daf656d68f682bde0fc Mon Sep 17 00:00:00 2001
From: Oleh Serhiienko <sergienko.oleg.92@gmail.com>
Date: Thu, 11 Feb 2021 15:01:07 +0200
Subject: [PATCH] Fix #9036 - change log level according it message

---
 data/Relationships/M2MRelationship.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/Relationships/M2MRelationship.php b/data/Relationships/M2MRelationship.php
index b8dcdef2c4f..6ccd3b6ef6c 100755
--- a/data/Relationships/M2MRelationship.php
+++ b/data/Relationships/M2MRelationship.php
@@ -97,7 +97,7 @@ public function getLinkedDefForModuleByRelationship($module)
         //Multiple links with same relationship name
         else {
             if (is_array($results)) {
-                $GLOBALS['log']->error("Warning: Multiple links found for relationship {$this->name} within module {$module}");
+                $GLOBALS['log']->warn("Multiple links found for relationship {$this->name} within module {$module}");
                 return $this->getMostAppropriateLinkedDefinition($results);
             } else {
                 return false;