Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5588f9d

Browse files
committedMay 28, 2012
Fix #14309: Log all SOAP errors to the server's web log
1 parent ab1004c commit 5588f9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎api/soap/mc_api.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,10 @@ function mc_error_handler( $p_type, $p_error, $p_file, $p_line, $p_context ) {
414414

415415
$t_error_description = $t_error_description;
416416
$t_error_stack = error_get_stack_trace();
417+
418+
error_log("[mantisconnect.php] Error Type: $t_error_type,\nError Description: $t_error_description\nStack Trace:\n$t_error_stack");
417419

418-
$l_oServer->fault( 'Server', "Error Type: $t_error_type,\nError Description:\n$t_error_description,\nStack Trace:\n$t_error_stack" );
420+
$l_oServer->fault( 'Server', "Error Type: $t_error_type,\nError Description: $t_error_description" );
419421
$l_oServer->send_response();
420422
exit();
421423
}

0 commit comments

Comments
 (0)
Please sign in to comment.