Skip to content

Commit

Permalink
MDL-33028 display debuginfo when server die at developer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac authored and danpoltawski committed May 25, 2012
1 parent a8cf5e9 commit 8d83e44
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webservice/amf/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions webservice/rest/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions webservice/soap/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions webservice/xmlrpc/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8d83e44

Please sign in to comment.