Bläddra i källkod

debug info for later

CauseFX 5 år sedan
förälder
incheckning
77336ee3aa
1 ändrade filer med 10 tillägg och 0 borttagningar
  1. 10 0
      api/classes/organizr.class.php

+ 10 - 0
api/classes/organizr.class.php

@@ -6028,6 +6028,16 @@ class Organizr
 					$headers[$header] = $headerKey;
 				}
 			}
+			$debugInformation = [
+				'type' => $requestObject->getMethod(),
+				'headerType' => $requestObject->getHeaderLine('Content-Type'),
+				'header' => $header,
+				'headers' => $headers,
+				'url' => $url,
+				'options' => $options,
+				'data' => $apiData
+			];
+			//$this->debug(json_encode($debugInformation));
 			switch ($requestObject->getMethod()) {
 				case 'GET':
 					$call = Requests::get($url, $headers, $options);