Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
feat: better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Dec 3, 2013
1 parent 4a40589 commit 3721f74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ var BrowserStackBrowser = function(id, emitter, args, logger,
var alreadyKilling = null;
var log = logger.create('launcher.browserstack');
var browserName = (args.browser || args.device) + (args.browser_version ? ' ' + args.browser_version : '') +
' (' + args.os + ' ' + args.os_version + ')' + ' on BrowserStack';
' (' + args.os + ' ' + args.os_version + ')';

this.id = id;
this.name = browserName;
this.name = browserName + ' on BrowserStack';

var bsConfig = config.browserStack || {};
var captureTimeout = config.captureTimeout || 0;
Expand Down Expand Up @@ -164,8 +164,9 @@ var BrowserStackBrowser = function(id, emitter, args, logger,
alreadyKilling = q.defer();

if (workerId) {
log.debug('Killing worker %s', workerId);
log.debug('Killing %s (worker %s).', browserName, workerId);
client.terminateWorker(workerId, function() {
log.debug('%s (worker %s) successfully killed.', browserName, workerId);
workerId = null;
alreadyKilling.resolve();
});
Expand Down

0 comments on commit 3721f74

Please sign in to comment.