pre release v2
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user