MDL-33028 display debuginfo when server die at developer mode

This commit is contained in:
Jerome Mouneyrac
2012-05-25 10:23:02 +08:00
committed by Dan Poltawski
parent a8cf5e9574
commit 8d83e44bc4
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -31,6 +31,8 @@ require('../../config.php');
require_once("$CFG->dirroot/webservice/amf/locallib.php");
if (!webservice_protocol_is_enabled('amf')) {
debugging('The server died because the web services or the AMF protocol are not enable',
DEBUG_DEVELOPER);
die;
}
+2
View File
@@ -31,6 +31,8 @@ require('../../config.php');
require_once("$CFG->dirroot/webservice/rest/locallib.php");
if (!webservice_protocol_is_enabled('rest')) {
debugging('The server died because the web services or the REST protocol are not enable',
DEBUG_DEVELOPER);
die;
}
+2
View File
@@ -31,6 +31,8 @@ require('../../config.php');
require_once("$CFG->dirroot/webservice/soap/locallib.php");
if (!webservice_protocol_is_enabled('soap')) {
debugging('The server died because the web services or the SOAP protocol are not enable',
DEBUG_DEVELOPER);
die;
}
+2
View File
@@ -31,6 +31,8 @@ require('../../config.php');
require_once("$CFG->dirroot/webservice/xmlrpc/locallib.php");
if (!webservice_protocol_is_enabled('xmlrpc')) {
debugging('The server died because the web services or the XMLRPC protocol are not enable',
DEBUG_DEVELOPER);
die;
}