Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions pve2_api.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

Proxmox VE APIv2 (PVE2) Client - PHP Class

Copyright (c) 2012-2014 Nathan Sullivan

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
Expand Down Expand Up @@ -230,12 +228,13 @@ private function action ($action_path, $http_method, $put_post_parameters = null
$action_response_array = json_decode($body_response, true);

$action_response_export = var_export($action_response_array, true);
error_log("----------------------------------------------\n" .
"FULL RESPONSE:\n\n{$action_response}\n\nEND FULL RESPONSE\n\n" .
"Headers:\n\n{$header_response}\n\nEnd Headers\n\n" .
"Data:\n\n{$body_response}\n\nEnd Data\n\n" .
"RESPONSE ARRAY:\n\n{$action_response_export}\n\nEND RESPONSE ARRAY\n" .
"----------------------------------------------");
// Per GH Issues #45/#47, commenting and may later expose this via option.
// error_log("----------------------------------------------\n" .
// "FULL RESPONSE:\n\n{$action_response}\n\nEND FULL RESPONSE\n\n" .
// "Headers:\n\n{$header_response}\n\nEnd Headers\n\n" .
// "Data:\n\n{$body_response}\n\nEnd Data\n\n" .
// "RESPONSE ARRAY:\n\n{$action_response_export}\n\nEND RESPONSE ARRAY\n" .
// "----------------------------------------------");

unset($action_response);
unset($action_response_export);
Expand Down