php error log refactor
This commit is contained in:
+2
-3
@@ -1,9 +1,8 @@
|
||||
<?php
|
||||
|
||||
error_reporting(E_ERROR);
|
||||
// ini_set('display_errors', 'On');
|
||||
ini_set("log_errors", 1);
|
||||
ini_set("error_log", '/logs/php_error');
|
||||
// ini_set("log_errors", 1);
|
||||
// ini_set("error_log", '/logs/php_error');
|
||||
|
||||
$debug = [
|
||||
'raw' => file_get_contents('php://input'),
|
||||
|
||||
+2
-2
@@ -483,7 +483,7 @@ memory_limit = 128M
|
||||
; Development Value: E_ALL
|
||||
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||
; https://php.net/error-reporting
|
||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||
error_reporting = E_ERROR
|
||||
|
||||
; This directive controls whether or not and where PHP will output errors,
|
||||
; notices and warnings too. Error output is very useful during development, but
|
||||
@@ -587,7 +587,7 @@ report_memleaks = On
|
||||
; empty.
|
||||
; https://php.net/error-log
|
||||
; Example:
|
||||
;error_log = php_errors.log
|
||||
error_log = /logs/php_error
|
||||
; Log errors to syslog (Event Log on Windows).
|
||||
;error_log = syslog
|
||||
|
||||
|
||||
Reference in New Issue
Block a user