Enhanced logging

This commit is contained in:
“VeLiTi”
2024-03-27 19:59:55 +01:00
parent 4f31175a6c
commit bf1dd72a39
3 changed files with 12 additions and 1 deletions

View File

@@ -484,6 +484,11 @@ function ioServer($api_call, $data){
//Check If errorcode is returned
if($http_status['http_code'] == '403' || $http_status['http_code'] == '400') {$resp = generate_payload('NOK');}
if (debug){
$message = $date.';'.$api_call;
debuglog($message);
}
//Response
return $resp;
}