浏览代码

debug info for later

CauseFX 5 年之前
父节点
当前提交
77336ee3aa
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      api/classes/organizr.class.php

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

@@ -6028,6 +6028,16 @@ class Organizr
 					$headers[$header] = $headerKey;
 					$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()) {
 			switch ($requestObject->getMethod()) {
 				case 'GET':
 				case 'GET':
 					$call = Requests::get($url, $headers, $options);
 					$call = Requests::get($url, $headers, $options);