mirror of
https://github.com/appium/appium.git
synced 2026-02-20 01:29:36 -06:00
handle instruments logging better
This commit is contained in:
3
instruments/bootstrap_example.js
vendored
3
instruments/bootstrap_example.js
vendored
@@ -85,6 +85,7 @@ var getNextCommand = function() {
|
||||
var sendCommandResult = function(commandId, result) {
|
||||
var url = 'send_result/'+commandId+'/'+encodeURIComponent(result);
|
||||
var res = doCurl('GET', endpoint + url);
|
||||
console.log(res.status);
|
||||
};
|
||||
|
||||
while(runLoop) {
|
||||
@@ -92,7 +93,7 @@ while(runLoop) {
|
||||
if (cmd) {
|
||||
console.log("Executing command " + cmd.commandId + ": " + cmd.command);
|
||||
var result = eval(cmd.command);
|
||||
console.log("####"+cmd.commandId+"####"+result+"####");
|
||||
console.log(cmd.commandId+": "+result);
|
||||
sendCommandResult(cmd.commandId, result);
|
||||
} else {
|
||||
delay(10);
|
||||
|
||||
Reference in New Issue
Block a user