From 085fed52848744ff836a7624ba053daf576b1bd5 Mon Sep 17 00:00:00 2001 From: Paolo Date: Tue, 13 Jun 2017 12:00:24 +0200 Subject: [PATCH] Added a log debug to the constructor of controller APIv1_Controller to undestand what is the called restful web service --- application/core/APIv1_Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/core/APIv1_Controller.php b/application/core/APIv1_Controller.php index 26fbeddac..0f91b5918 100644 --- a/application/core/APIv1_Controller.php +++ b/application/core/APIv1_Controller.php @@ -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']); } } \ No newline at end of file