Skip to content

Commit ab9b525

Browse files
committed
debug option for tunnel logs
1 parent f7182c5 commit ab9b525

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/tunnel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ var exec = require('child_process').exec,
22
fs = require('fs'),
33
http = require('http'),
44
tunnelJar = '/tmp/BrowserStackTunnel.jar',
5-
utils = require('./utils');
5+
utils = require('./utils'),
6+
config = require('./config');
67

78
var Tunnel = function Tunnel (key, port, tunnelIdentifier, callback, err) {
89
var that = {};
910

1011
function tunnelLauncher () {
1112
var tunnelCommand = 'java -jar ' + tunnelJar + ' ';
13+
if (config.debug)
14+
tunnelCommand += ' -v ';
1215
tunnelCommand += key + ' ';
1316
tunnelCommand += 'localhost' + ',';
1417
tunnelCommand += port.toString() + ',';

0 commit comments

Comments
 (0)