debug logs
This commit is contained in:
@@ -17,10 +17,13 @@ class BackendModel extends Model
|
|||||||
// Load API class
|
// Load API class
|
||||||
$USER = 'root';
|
$USER = 'root';
|
||||||
$this->USER = $USER;
|
$this->USER = $USER;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function wrenchboard_api($in, $out = array()) {
|
public function wrenchboard_api($in, $out = array()) {
|
||||||
|
log_message('critical', "wrenchboard_api-STARTING" );
|
||||||
|
|
||||||
$this->wrenchboard_load();
|
$this->wrenchboard_load();
|
||||||
if (!is_array($in)) {
|
if (!is_array($in)) {
|
||||||
$in = array();
|
$in = array();
|
||||||
@@ -30,7 +33,9 @@ class BackendModel extends Model
|
|||||||
}
|
}
|
||||||
if (self::DEBUG_API_CALLS) {
|
if (self::DEBUG_API_CALLS) {
|
||||||
$stack = debug_backtrace();
|
$stack = debug_backtrace();
|
||||||
|
|
||||||
$log = json_encode($stack);
|
$log = json_encode($stack);
|
||||||
|
log_message('critical', "wrenchboard_api-FAIL".serialize($log) );
|
||||||
error_log($log);
|
error_log($log);
|
||||||
error_log(json_encode($in));
|
error_log(json_encode($in));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user