diff --git a/config/current.ver b/config/current.ver index e54077f..513314c 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.21 \ No newline at end of file +1.2.23 \ No newline at end of file diff --git a/src/ApiKernel.php b/src/ApiKernel.php index e3118db..5507c5e 100644 --- a/src/ApiKernel.php +++ b/src/ApiKernel.php @@ -2206,9 +2206,18 @@ class ApiKernel private function handleTemplateReferences(): void { - @file_put_contents(sys_get_temp_dir() . '/emailtemplate_debug.log', json_encode([ + $traceDir = dirname(__DIR__) . '/debug'; + if (!is_dir($traceDir)) { + @mkdir($traceDir, 0777, true); + } + @file_put_contents($traceDir . '/templates_references_trace.log', json_encode([ 'time' => date(DATE_ATOM), 'tag' => 'handleTemplateReferences', + 'host' => $_SERVER['HTTP_HOST'] ?? '', + 'xfh' => $_SERVER['HTTP_X_FORWARDED_HOST'] ?? '', + 'env' => $this->conf['env'] ?? null, + 'app_env' => defined('APP_ENV') ? APP_ENV : null, + 'user' => ($this->in['user'] ?? null), 'input' => $this->in ?? null, ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n", FILE_APPEND);