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.
This commit is contained in:
parent
c9c75a1c08
commit
8d6084db39
@ -633,14 +633,12 @@ class InterfaceActionsAuto
|
|||||||
$ok=1;
|
$ok=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not found
|
// The trigger was enabled but we are missing the implementation, let the log know
|
||||||
/*
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Trigger '".$this->name."' for action '$action' was ran by ".__FILE__." but no handler found for this action.");
|
dol_syslog("Trigger '".$this->name."' for action '$action' was ran by ".__FILE__." but no handler found for this action.", LOG_WARNING);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
// Add entry in event table
|
// Add entry in event table
|
||||||
if ($ok)
|
if ($ok)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user