From bd7b91681110e012e204f0d03ece6e4b17a2859d Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 16 Jul 2020 14:54:02 -0600 Subject: [PATCH] Api: log on_shutdown() messages to its own log file --- api/src/Egw.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Egw.php b/api/src/Egw.php index 970e24c95d..45aa23b807 100644 --- a/api/src/Egw.php +++ b/api/src/Egw.php @@ -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