MDL-33028 display debuginfo when server die at developer mode
authorJerome Mouneyrac <jerome@moodle.com>
Wed, 16 May 2012 04:04:13 +0000 (12:04 +0800)
committerJerome Mouneyrac <jerome@moodle.com>
Wed, 16 May 2012 04:04:13 +0000 (12:04 +0800)
webservice/amf/server.php
webservice/rest/server.php
webservice/soap/server.php
webservice/xmlrpc/server.php

index 4103f00..32a4602 100644 (file)
@@ -37,6 +37,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;
 }
 
index 5e9f515..c0f02bc 100644 (file)
@@ -37,6 +37,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;
 }
 
index 468c325..b110cfe 100644 (file)
@@ -37,6 +37,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;
 }
 
index b601bdc..bb07369 100644 (file)
@@ -37,6 +37,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;
 }