mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Only log start of script if that specific debug is configured.
This commit is contained in:
parent
421e594a4e
commit
e2868c93ea
@ -143,8 +143,8 @@ if ( !isset($c->page_title) ) $c->page_title = $c->system_name;
|
|||||||
if ( isset($_SERVER['HTTP_X_DAVICAL_TESTCASE']) ) {
|
if ( isset($_SERVER['HTTP_X_DAVICAL_TESTCASE']) ) {
|
||||||
@dbg_error_log( 'LOG', '==========> Test case =%s=', $_SERVER['HTTP_X_DAVICAL_TESTCASE'] );
|
@dbg_error_log( 'LOG', '==========> Test case =%s=', $_SERVER['HTTP_X_DAVICAL_TESTCASE'] );
|
||||||
}
|
}
|
||||||
else if ( count($c->dbg) > 0 ) {
|
else if ( isset($c->dbg['script_start']) && $c->dbg['script_start'] ) {
|
||||||
// Only log this if debugging of some sort is turned on, somewhere
|
// Only log this if more than a little debugging of some sort is turned on, somewhere
|
||||||
@dbg_error_log( 'LOG', '==========> method =%s= =%s= =%s= =%s= =%s=',
|
@dbg_error_log( 'LOG', '==========> method =%s= =%s= =%s= =%s= =%s=',
|
||||||
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url, $c->base_directory );
|
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url, $c->base_directory );
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,8 +143,8 @@ if ( !isset($c->page_title) ) $c->page_title = $c->system_name;
|
|||||||
if ( isset($_SERVER['HTTP_X_DAVICAL_TESTCASE']) ) {
|
if ( isset($_SERVER['HTTP_X_DAVICAL_TESTCASE']) ) {
|
||||||
@dbg_error_log( 'LOG', '==========> Test case =%s=', $_SERVER['HTTP_X_DAVICAL_TESTCASE'] );
|
@dbg_error_log( 'LOG', '==========> Test case =%s=', $_SERVER['HTTP_X_DAVICAL_TESTCASE'] );
|
||||||
}
|
}
|
||||||
else if ( count($c->dbg) > 0 ) {
|
else if ( isset($c->dbg['script_start']) && $c->dbg['script_start'] ) {
|
||||||
// Only log this if debugging of some sort is turned on, somewhere
|
// Only log this if more than a little debugging of some sort is turned on, somewhere
|
||||||
@dbg_error_log( 'LOG', '==========> method =%s= =%s= =%s= =%s= =%s=',
|
@dbg_error_log( 'LOG', '==========> method =%s= =%s= =%s= =%s= =%s=',
|
||||||
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url, $c->base_directory );
|
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url, $c->base_directory );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user