logging headers in api request
This commit is contained in:
@@ -38,9 +38,7 @@ class mfBaseApicontroller {
|
||||
$this->logRequest();
|
||||
|
||||
$this->loadRequest($params);
|
||||
if($this->request_json) {
|
||||
$this->logJsonRequest();
|
||||
}
|
||||
$this->logRequest2();
|
||||
|
||||
register_shutdown_function(["mfBaseApicontroller", "return_errors"]);
|
||||
|
||||
@@ -91,11 +89,11 @@ class mfBaseApicontroller {
|
||||
$this->requestLogstr .= "; $key='$value'";
|
||||
}
|
||||
$this->requestLog->debug("POST: ".print_r($_POST, true));
|
||||
$this->requestLog->debug("Headers: ".print_r($this->headers, true));
|
||||
}
|
||||
|
||||
private function logJsonRequest() {
|
||||
private function logRequest2() {
|
||||
$this->requestLog->debug("POST JSON: ".$this->request_json);
|
||||
$this->requestLog->debug("Headers: ".print_r($this->headers, true));
|
||||
}
|
||||
|
||||
private function authenticateUser() {
|
||||
|
||||
Reference in New Issue
Block a user