Skip to content
Browse files

MDL-33028 display debuginfo when server die at developer mode

  • Loading branch information...
1 parent a8cf5e9 commit 8d83e44bc4a78db4f6fa090aec0208715e3e7276 @mouneyrac mouneyrac committed with danpoltawski May 16, 2012
Showing with 8 additions and 0 deletions.
  1. +2 −0 webservice/amf/server.php
  2. +2 −0 webservice/rest/server.php
  3. +2 −0 webservice/soap/server.php
  4. +2 −0 webservice/xmlrpc/server.php
View
2 webservice/amf/server.php
@@ -31,6 +31,8 @@
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;
}
View
2 webservice/rest/server.php
@@ -31,6 +31,8 @@
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;
}
View
2 webservice/soap/server.php
@@ -31,6 +31,8 @@
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;
}
View
2 webservice/xmlrpc/server.php
@@ -31,6 +31,8 @@
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;
}

0 comments on commit 8d83e44

Please sign in to comment.
Something went wrong with that request. Please try again.