Skip to content

Commit d8f744a

Browse files
authored
Disable verbose logging (fix #45) while #47 is WIP (#49)
Comment out the verbose error logging segment. Plan is to expose this via option as part of Issue #47 and Pull #42
1 parent 76fabeb commit d8f744a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pve2_api.class.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
55
Proxmox VE APIv2 (PVE2) Client - PHP Class
66
7-
Copyright (c) 2012-2014 Nathan Sullivan
8-
97
Permission is hereby granted, free of charge, to any person obtaining a copy of
108
this software and associated documentation files (the "Software"), to deal in
119
the Software without restriction, including without limitation the rights to
@@ -230,12 +228,13 @@ private function action ($action_path, $http_method, $put_post_parameters = null
230228
$action_response_array = json_decode($body_response, true);
231229

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

240239
unset($action_response);
241240
unset($action_response_export);

0 commit comments

Comments
 (0)