debug logs

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-16 12:56:20 -04:00
parent ec29bf309c
commit 77c7cbb354
+5
View File
@@ -17,10 +17,13 @@ class BackendModel extends Model
// Load API class
$USER = 'root';
$this->USER = $USER;
}
public function wrenchboard_api($in, $out = array()) {
log_message('critical', "wrenchboard_api-STARTING" );
$this->wrenchboard_load();
if (!is_array($in)) {
$in = array();
@@ -30,7 +33,9 @@ class BackendModel extends Model
}
if (self::DEBUG_API_CALLS) {
$stack = debug_backtrace();
$log = json_encode($stack);
log_message('critical', "wrenchboard_api-FAIL".serialize($log) );
error_log($log);
error_log(json_encode($in));
}