Skip to content

Commit

Permalink
Address deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Nov 18, 2023
1 parent 73af49f commit 30af9a6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internals/http-server/src/Tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { tunnelmole } from 'tunnelmole';
process.env.TUNNELMOLE_TELEMETRY = '0';
process.env.TUNNELMOLE_QUIET_MODE = '1';

const regexp = new RegExp(/^http(.*) is forwarding to(.*)/);
const silenceTunnelmoleOutput = () => {
const origInfo = console.info;
console.info = (msg: string) => {
if (!regexp.test(msg)) {
origInfo.call(console, msg);
}
};
};
// const regexp = new RegExp(/^http(.*) is forwarding to(.*)/);
// const silenceTunnelmoleOutput = () => {
// const origInfo = console.info;
// console.info = (msg: string) => {
// if (!regexp.test(msg)) {
// origInfo.call(console, msg);
// }
// };
// };

export class Tunnel {
port: number;
Expand Down

0 comments on commit 30af9a6

Please sign in to comment.