Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vincep5 committed Jul 12, 2018
1 parent 67e0bcc commit fb8d4da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node_helper.js
Expand Up @@ -13,11 +13,13 @@ module.exports = NodeHelper.create({

getData: function (notification, url) {
var self = this;
console.log('requesting:' + url);
//console.log('requesting:' + url);
request({ url: url, method: 'GET' }, function (error, response, body) {
if (!error && response.statusCode == 200) {
var result = JSON.parse(body);
self.sendSocketNotification(notification, result);
} else {
console.log("MMM-Wattvision : Could not load data.");
}
});
},
Expand Down

0 comments on commit fb8d4da

Please sign in to comment.