Mute port forwarding errors
Summary: Mentioned in the comment, these aren't actionable errors. Reviewed By: jknoxville Differential Revision: D27910465 fbshipit-source-id: 6f5e9d9d25edbb02648f3118c074e9f1986e3a86
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3431206c0e
commit
9e7a455910
@@ -64,12 +64,13 @@ function forwardPort(port: number, multiplexChannelPort: number) {
|
|||||||
portforwardingClient,
|
portforwardingClient,
|
||||||
[`-portForward=${port}`, `-multiplexChannelPort=${multiplexChannelPort}`],
|
[`-portForward=${port}`, `-multiplexChannelPort=${multiplexChannelPort}`],
|
||||||
(err, stdout, stderr) => {
|
(err, stdout, stderr) => {
|
||||||
console.error('Port forwarding app failed to start', err, stdout, stderr);
|
// This happens on app reloads and doesn't need to be treated as an error.
|
||||||
|
console.warn('Port forwarding app failed to start', err, stdout, stderr);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
console.log('Port forwarding app started', childProcess);
|
console.log('Port forwarding app started', childProcess);
|
||||||
childProcess.addListener('error', (err) =>
|
childProcess.addListener('error', (err) =>
|
||||||
console.error('Port forwarding app error', err),
|
console.warn('Port forwarding app error', err),
|
||||||
);
|
);
|
||||||
childProcess.addListener('exit', (code) =>
|
childProcess.addListener('exit', (code) =>
|
||||||
console.log(`Port forwarding app exited with code ${code}`),
|
console.log(`Port forwarding app exited with code ${code}`),
|
||||||
|
|||||||
Reference in New Issue
Block a user