Skip to content

Commit 4fd46f5

Browse files
committed
Merge pull request #21 from browserstack/few_logs
Some extra logging
2 parents 0f234af + 3e82a17 commit 4fd46f5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/runner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var cleanUp = function cleanUp () {
5757
process.on('exit', cleanUp);
5858
process.on('SIGINT', cleanUp);
5959

60-
console.log("Launching server..");
60+
console.log("Launching server on port:", serverPort);
6161

6262
var server = new Server(client, workers);
6363
server.listen(parseInt(serverPort, 10));
@@ -140,6 +140,7 @@ function launchBrowser(browser) {
140140

141141
if (config.browsers && config.browsers.length > 0) {
142142
tunnel = new Tunnel(config.key, serverPort, config.tunnelIdentifier, function () {
143+
console.log("Launching BrowserStack workers");
143144
config.browsers.forEach(function(browser) {
144145
if (browser.browser_version === "latest") {
145146
console.log("[%s] Finding version.", utils.browserString(browser));

lib/tunnel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ var Tunnel = function Tunnel (key, port, tunnelIdentifier, callback, err) {
2222
callback = function () {};
2323
}
2424

25-
console.log("Launching tunnel..");
25+
console.log("Launching tunnel");
2626
var subProcess = exec(tunnelCommand, function (error, stdout, stderr) {
2727
console.error(stderr);
2828
if (stdout.indexOf('Error') >= 0) {
29-
console.log("..Failed");
29+
console.log("Tunnel launching failed");
3030
console.log(stdout);
3131
process.exit(1);
3232
}
@@ -52,7 +52,7 @@ var Tunnel = function Tunnel (key, port, tunnelIdentifier, callback, err) {
5252

5353
if (data.indexOf(runMatcher) >= 0) {
5454
running = true;
55-
console.log("..Done");
55+
console.log("Tunnel launched");
5656
callback();
5757
}
5858
});
@@ -64,7 +64,7 @@ var Tunnel = function Tunnel (key, port, tunnelIdentifier, callback, err) {
6464
if (exists) {
6565
fs.unlinkSync(tunnelJar);
6666
}
67-
console.log('Downloading tunnel to `%s`', tunnelJar);
67+
console.log('Downloading tunnel jar to `%s`', tunnelJar);
6868

6969
var file = fs.createWriteStream(tunnelJar);
7070
var request = http.get(

0 commit comments

Comments
 (0)