Skip to content

Commit 15296c9

Browse files
knightburtonyichoi
authored andcommitted
Fix the debug log level check in the attachRequest
Remove the first condition from the if statement because if the debugLog is 0 then the condition runs into false. The second condition covers the 0 level. IoT.js-VSCode-DCO-1.0-Signed-off-by: Imre Kiss [email protected]
1 parent c16c2b1 commit 15296c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IotjsDebugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class IotjsDebugSession extends DebugSession {
110110
}
111111

112112
this._args = args;
113-
if (args.debugLog && args.debugLog in LOG_LEVEL) {
113+
if (args.debugLog in LOG_LEVEL) {
114114
this._debugLog = args.debugLog;
115115
} else {
116116
this.sendErrorResponse(response, new Error('No log level given'));

0 commit comments

Comments
 (0)