Update main.js

This commit is contained in:
hl 2018-09-29 11:23:01 +08:00
parent f6d8d162d2
commit 156d8dd74e

View File

@ -154,9 +154,13 @@ function sendNotification(message, callback) {
}
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) {
adapter.log.info('response.statusCode' + response.statusCode);
adapter.log.info('body' + body);
if (error || response.statusCode !== 200) {
adapter.log.error(error || response.statusCode);
} else {