From 53708c138a3302f4c551559c30e77e65297058e1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Jul 2017 16:52:28 +0200 Subject: [PATCH] Add option to be able to debug problem of apache lock page --- htdocs/core/modules/syslog/mod_syslog_file.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index b059c63e003..34207496ea4 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -109,6 +109,11 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface if (empty($conf->global->SYSLOG_FILE)) $tmp=DOL_DATA_ROOT.'/dolibarr.log'; else $tmp=str_replace('DOL_DATA_ROOT', DOL_DATA_ROOT, $conf->global->SYSLOG_FILE); + if (! empty($conf->global->SYSLOG_FILE_ONEPERSESSION)) + { + $suffixinfilename = '_'.session_name(); + } + return $suffixinfilename?preg_replace('/\.log$/i', $suffixinfilename.'.log', $tmp):$tmp; }