mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update Telegram.php (#12228)
Return Telegram response body when failed so users will know where went wrong, bad template etc.
This commit is contained in:
@@ -58,7 +58,7 @@ class Telegram extends Transport
|
||||
var_dump('Params: ' . $api); //FIXME: propper debuging
|
||||
var_dump('Return: ' . $ret); //FIXME: propper debuging
|
||||
|
||||
return 'HTTP Status code ' . $code;
|
||||
return 'HTTP Status code ' . $code . ', Body ' . $ret;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user