Skip to content

Commit 36fc2ab

Browse files
author
ericferon
committed
notificationeventwebhook.class : enhance error message
1 parent 6546a6d commit 36fc2ab

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

inc/notificationeventwebhook.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static public function extraRaise($params) {
192192

193193
if ( $status != 200 && $status != 201 ) {
194194
Session::addMessageAfterRedirect("<font color='red'>"."Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl)."</font>", false, ERROR);
195-
Toolbox::logInFile("webhook", "Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl).PHP_EOL);
195+
Toolbox::logInFile("webhook", "Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl).PHP_EOL."HTTP Headers : ".print_r($headers,true).PHP_EOL."POST Content : ".print_r($content,true).PHP_EOL);
196196
}
197197

198198
curl_close($curl);

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function plugin_version_webhook() {
109109

110110
return [
111111
'name' => _n('Webhook', 'Webhooks', 2, 'webhook'),
112-
'version' => '1.0.10',
112+
'version' => '1.0.11',
113113
'author' => "Eric Feron",
114114
'license' => 'GPLv2+',
115115
'homepage'=> 'https://github.com/ericferon/glpi-webhook',

webhook.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<author>Eric Feron</author>
2323
</authors>
2424
<versions>
25+
<version>
26+
<num>1.0.11</num>
27+
<compatibility>>=10.0.3</compatibility>
28+
<download_url>https://github.com/ericferon/glpi-webhook/releases/download/v1.0.11/webhook-v1.0.11.tar.gz</download_url>
29+
</version>
2530
<version>
2631
<num>1.0.10</num>
2732
<compatibility>>=10.0.3</compatibility>

0 commit comments

Comments
 (0)