diff --git a/htdocs/core/modules/syslog/logHandler.php b/htdocs/core/modules/syslog/logHandler.php index 4ee6818c499..0af3f304331 100644 --- a/htdocs/core/modules/syslog/logHandler.php +++ b/htdocs/core/modules/syslog/logHandler.php @@ -56,13 +56,13 @@ class LogHandler } /** - * Is the module active ? + * Is the logger active ? * - * @return boolean + * @return int 1 if logger enabled */ public function isActive() { - return false; + return 0; } /** diff --git a/htdocs/core/modules/syslog/logHandlerInterface.php b/htdocs/core/modules/syslog/logHandlerInterface.php index 02915ec8297..15ab436f4fa 100644 --- a/htdocs/core/modules/syslog/logHandlerInterface.php +++ b/htdocs/core/modules/syslog/logHandlerInterface.php @@ -70,9 +70,9 @@ interface LogHandlerInterface public function checkConfiguration(); /** - * Return if logger active + * Is the logger active ? * - * @return boolean True if active + * @return int 1 if logger enabled */ public function isActive(); diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index ffdb883ef1b..4d361622af4 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -45,13 +45,12 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface } /** - * Is the module active ? + * Is the logger active ? * - * @return int + * @return int 1 if logger enabled */ public function isActive() { - global $conf; return !getDolGlobalString('SYSLOG_DISABLE_LOGHANDLER_FILE') ? 1 : 0; // Set SYSLOG_DISABLE_LOGHANDLER_FILE to 1 to disable this loghandler } diff --git a/htdocs/core/modules/syslog/mod_syslog_syslog.php b/htdocs/core/modules/syslog/mod_syslog_syslog.php index e0a34cb573e..d3931cf09eb 100644 --- a/htdocs/core/modules/syslog/mod_syslog_syslog.php +++ b/htdocs/core/modules/syslog/mod_syslog_syslog.php @@ -42,14 +42,12 @@ class mod_syslog_syslog extends LogHandler implements LogHandlerInterface } /** - * Is the module active ? + * Is the logger active ? * - * @return int + * @return int 1 if logger enabled */ public function isActive() { - global $conf; - // This function does not exists on some ISP (Ex: Free in France) if (!function_exists('openlog')) { return 0;