From 8d6084db39b45777c11380593c97b5c1fef7ea75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 26 Mar 2014 17:13:42 +0100 Subject: [PATCH] Automatic agenda triggers: uncomment useful syslog The syslog was commented but is useful to spot unimplemented handlers that were nonetheless enabled in the administration interface. Also made it issue a warning level message. --- .../interface_50_modAgenda_ActionsAuto.class.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 856ca34c693..7b0843e2421 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -633,14 +633,12 @@ class InterfaceActionsAuto $ok=1; } - // If not found - /* - else - { - dol_syslog("Trigger '".$this->name."' for action '$action' was ran by ".__FILE__." but no handler found for this action."); + // The trigger was enabled but we are missing the implementation, let the log know + else + { + dol_syslog("Trigger '".$this->name."' for action '$action' was ran by ".__FILE__." but no handler found for this action.", LOG_WARNING); return 0; - } - */ + } // Add entry in event table if ($ok)