Api: log on_shutdown() messages to its own log file

This commit is contained in:
nathangray 2020-07-16 14:54:02 -06:00
parent b02aa04c8c
commit bd7b916811

View File

@ -594,6 +594,7 @@ class Egw extends Egw\Base
if (function_exists('fastcgi_finish_request') && substr($_SERVER['PHP_SELF'], -18) != '/asyncservices.php')
{
fastcgi_finish_request();
ini_set('error_log', dirname($GLOBALS['egw_info']['server']['files_dir']) . '/on-shutdown.log');
}
// run all on_shutdown, do NOT stop on exceptions