Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-brun committed Jun 4, 2024
1 parent e43d2e8 commit 6435008
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adapters/vnfm_generic/polld/vnfm_generic_poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ function get_token($SIGNIN_REQ_PATH, $data, $auth_mode)
curl_setopt($ch, CURLOPT_POSTFIELDS, $http_data);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
if($auth_mode == 'keystone'){
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
}

$ret = curl_exec($ch);
debug_dump($ret, "get_token() curl return\n");
$header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
$header = substr($response, 0, $header_size);

debug_dump($header, "get_token() header: \n");
// sms_log_info(basename(__FILE__, '.php') . " polling $url with get_token() ret: $ret");
if (curl_errno($ch))
{
Expand Down

0 comments on commit 6435008

Please sign in to comment.