Skip to content

Commit a9c84b0

Browse files
Rachit TiwariRachit Tiwari
authored andcommitted
Adding logLevel flag for node-tunnel
1 parent fa18cb0 commit a9c84b0

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

lib/cfg/node-tunnel-config-v3-latest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
7878
"logEnable": true,
79-
"latest": "4.0.8",
79+
"latest": "4.0.9",
8080
"supportedVersions":
8181
[
8282
"1.0.0",
@@ -121,6 +121,7 @@
121121
"4.0.5",
122122
"4.0.6",
123123
"4.0.7",
124-
"4.0.8"
124+
"4.0.8",
125+
"4.0.9"
125126
]
126127
}

lib/tunnel.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,13 @@ function addArguments_(self, fnCallback) {
856856
binaryArgs.push(value)
857857
}
858858
break;
859+
case 'loglevel':
860+
case 'log-level':
861+
if (value) {
862+
binaryArgs.push('--log-level');
863+
binaryArgs.push(value)
864+
}
865+
break;
859866
}
860867
}
861868
if (binaryArgs.indexOf('--controller') === -1) {
@@ -1150,7 +1157,7 @@ async function getTunnelID(infoAPIPort, retries){
11501157
})
11511158
var subprocess = childProcess.spawn(self.binaryPath, binaryArguments, {
11521159
detached:true,
1153-
stdio:'ignore'
1160+
stdio:['ignore','ignore','ignore','ignore']
11541161
});
11551162
subprocess.unref()
11561163

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/node-tunnel",
3-
"version": "4.0.8",
3+
"version": "4.0.9",
44
"description": "Nodejs bindings for LambdaTest Tunnel",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)