From ebe86d09eee81a72e52c651f900985604b6443ac Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 30 Jan 2020 16:18:49 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B0985=20-=20Add=20applicable=20contexts=20?= =?UTF-8?q?on=20Trigger=20(logs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/trigger.class.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/trigger.class.inc.php b/core/trigger.class.inc.php index a7e6f5f03..7c32137b4 100644 --- a/core/trigger.class.inc.php +++ b/core/trigger.class.inc.php @@ -110,10 +110,11 @@ abstract class Trigger extends cmdbAbstractObject if (!$this->IsContextValid()) { // Trigger does not match the current context - IssueLog::Info("Context NOT valid for: ".$this->Get('friendlyname')); + $sClass = get_class($this); + $sName = $this->Get('friendlyname'); + IssueLog::Debug("Context NOT valid for : {$sClass} '$sName'"); return; } - IssueLog::Info("Context VALID for: ".$this->Get('friendlyname')); // Find the related actions $oLinkedActions = $this->Get('action_list');