remove debug code

This commit is contained in:
blagoev 2017-11-13 22:53:27 +02:00
parent c3ac7ac81d
commit 3e65994474

View File

@ -229,7 +229,7 @@ function deserialize_json_value(value) {
return result; return result;
} }
let commandCounter = 0;
function sendRequest(command, data, host = sessionHost) { function sendRequest(command, data, host = sessionHost) {
clearTimeout(pollTimeoutId); clearTimeout(pollTimeoutId);
try { try {
@ -241,9 +241,7 @@ function sendRequest(command, data, host = sessionHost) {
commandCounter++; commandCounter++;
let url = 'http://' + host + '/' + command; let url = 'http://' + host + '/' + command;
console.log(`\n command ${commandCounter} ${command} data ${JSON.stringify(data)}`);
let response = makeRequest(url, data); let response = makeRequest(url, data);
console.log(`\n command ${commandCounter} response ${JSON.stringify(response)}`);
if (!response || response.error) { if (!response || response.error) {
let error = response && response.error; let error = response && response.error;