From a81e43fd2ce125c613d9ac00d52001f4fe97bc46 Mon Sep 17 00:00:00 2001 From: samcm Date: Mon, 5 Dec 2016 17:04:45 +1100 Subject: [PATCH] Even more Debugging for issue #2 Prints the Raw Body and Error in to the Main console. --- app/js/plex/PlexServer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/js/plex/PlexServer.js b/app/js/plex/PlexServer.js index e116cba8..c653a7e5 100644 --- a/app/js/plex/PlexServer.js +++ b/app/js/plex/PlexServer.js @@ -30,6 +30,7 @@ module.exports = function PlexServer(){ //Functions this.hitApi = function(command,params,connection,callback){ + var that = this console.log('Hitting server ' + this.name + ' via ' + connection.uri) if (connection == null){ if (this.chosenConnection == null){ @@ -56,6 +57,11 @@ module.exports = function PlexServer(){ //console.log('Hitting server ' + this.name + ' with command ' + command) //console.log(options) request(options, function (error, response, body) { + console.log('Raw response back from the PMS Server ' + that.name + ' is below') + console.log('Body VVV') + console.log(body) + console.log('Error VVV') + console.log(error) if (!error) { safeParse(body, function (err, json){ if (err){