pre release v2

This commit is contained in:
mercury
2023-01-20 00:50:25 +04:00
parent cde037537f
commit 75fb0bbc6c
34 changed files with 2360 additions and 326 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
<?php
error_reporting(E_ALL & ~E_NOTICE);
error_reporting(E_ERROR);
// ini_set('display_errors', 'On');
ini_set("log_errors", 1);
ini_set("error_log", __DIR__ . "/error_log");
ini_set("error_log", '/logs/php_error');
$debug = [
'raw' => file_get_contents('php://input'),
@@ -17,5 +17,5 @@ function exit_log($debug)
{
$output = ob_get_contents();
$debug['response'] = json_decode($output, true) ?: $output;
file_put_contents(__DIR__ . '/debug', "\n" . date('Y-m-d H:i:s') . "\n" . var_export($debug, true) . "\n", FILE_APPEND);
file_put_contents('/logs/requests', "\n" . date('Y-m-d H:i:s') . "\n" . var_export($debug, true) . "\n", FILE_APPEND);
}