Help debug cron

This commit is contained in:
Laurent Destailleur
2022-06-03 11:52:39 +02:00
parent 41caf67ecf
commit afd9787e99
3 changed files with 17 additions and 1 deletions

View File

@@ -1563,6 +1563,11 @@ function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename =
}
}
// Check if we have a forced suffix
if (defined('USESUFFIXINLOG')) {
$suffixinfilename .= constant('USESUFFIXINLOG');
}
if ($ident < 0) {
foreach ($conf->loghandlers as $loghandlerinstance) {
$loghandlerinstance->setIdent($ident);