Skip to content

Commit

Permalink
Hide debug-brk deprecation from user.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 17, 2017
1 parent 790d6c3 commit 1cd3f45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ const inspectProcess = function (cmd, options, devtools) {
const isListeningWs = dataStr.startsWith('Debugger listening on ws://')
const isAttached = dataStr.startsWith('Debugger attached')
const isCompleted = dataStr.startsWith('Waiting for the debugger to disconnect')
const isInspectOutput = isListening || isListeningWs || isCompleted || isAttached
const DebugBrkDeprecation = dataStr.indexOf('DeprecationWarning: `node --inspect --debug-brk` is deprecated. Please use `node --inspect-brk` instead.') !== -1
const isInspectOutput = isListening || isListeningWs || isCompleted || isAttached || DebugBrkDeprecation

if (isListening) {
log.silly('process: listening')
Expand Down

0 comments on commit 1cd3f45

Please sign in to comment.