remove debug code

This commit is contained in:
blagoev 2017-11-13 22:53:27 +02:00
parent c3ac7ac81d
commit 3e65994474
1 changed files with 1 additions and 3 deletions

View File

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