mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
More useful logs.
This commit is contained in:
@@ -159,10 +159,15 @@ module.exports = function(options) {
|
||||
return devutil.waitForPort(adb, options.serial, port)
|
||||
})
|
||||
.then(function(conn) {
|
||||
conn.end()
|
||||
var ours = options.ports.pop()
|
||||
, everyones = options.ports.pop()
|
||||
, url = util.format('http://127.0.0.1:%d', ours)
|
||||
|
||||
// Don't need the connection
|
||||
conn.end()
|
||||
|
||||
log.info('Opening device HTTP API forwarder on "%s"', url)
|
||||
|
||||
return adb.forwardAsync(
|
||||
options.serial
|
||||
, util.format('tcp:%d', ours)
|
||||
@@ -179,6 +184,12 @@ module.exports = function(options) {
|
||||
identity.display = args[1]
|
||||
})
|
||||
.then(function() {
|
||||
log.info(
|
||||
'Opening HTTP API proxy on "http://%s:%s"'
|
||||
, options.publicIp
|
||||
, everyones
|
||||
)
|
||||
|
||||
var resolver = Promise.defer()
|
||||
|
||||
function resolve() {
|
||||
@@ -208,12 +219,6 @@ module.exports = function(options) {
|
||||
})
|
||||
})
|
||||
.then(function() {
|
||||
log.info(
|
||||
'HTTP API proxy running on "http://%s:%s"'
|
||||
, options.publicIp
|
||||
, everyones
|
||||
)
|
||||
|
||||
identity.display.url = util.format(
|
||||
'http://%s:%s/api/v1/displays/0/screenshot.jpg'
|
||||
, options.publicIp
|
||||
|
||||
Reference in New Issue
Block a user