Added a log debug to the constructor of controller APIv1_Controller to

undestand what is the called restful web service
This commit is contained in:
Paolo
2017-06-13 12:00:24 +02:00
parent 8dcc407c99
commit 085fed5284
+4 -2
View File
@@ -2,13 +2,15 @@
require_once APPPATH . '/libraries/REST_Controller.php';
class APIv1_Controller extends REST_Controller
class APIv1_Controller extends REST_Controller
{
function __construct()
function __construct()
{
parent::__construct();
// Loads return messages
$this->load->helper('message');
log_message('debug', 'Called API: '.$_SERVER['PHP_SELF']);
}
}