Update main.js
This commit is contained in:
parent
f6d8d162d2
commit
156d8dd74e
4
main.js
4
main.js
@ -154,9 +154,13 @@ function sendNotification(message, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
adapter.log.info('Send pushover notification: ' + JSON.stringify(message));
|
adapter.log.info('Send pushover notification: ' + JSON.stringify(message));
|
||||||
|
adapter.log.info('adapter.config.smsUrl:' + adapter.config.smsUrl);
|
||||||
|
|
||||||
request(adapter.config.smsUrl, function (error, response, body) {
|
request(adapter.config.smsUrl, function (error, response, body) {
|
||||||
|
|
||||||
|
adapter.log.info('response.statusCode:' + response.statusCode);
|
||||||
|
adapter.log.info('body:' + body);
|
||||||
|
|
||||||
if (error || response.statusCode !== 200) {
|
if (error || response.statusCode !== 200) {
|
||||||
adapter.log.error(error || response.statusCode);
|
adapter.log.error(error || response.statusCode);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user