From 959ed59b2f959c58e557dff3b0a69d43c015d777 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 3 Jul 2018 05:07:42 -0600 Subject: [PATCH] use console.info to denote intentional output --- bin/telebit.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/telebit.js b/bin/telebit.js index 9d6a047..761182f 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -439,19 +439,19 @@ var utils = { if ('http' === body.module) { // TODO we'll support slingshot-ing in the future if (String(body.local) === String(parseInt(body.local, 10))) { - console.log('> Forwarding https://' + body.remote + ' => localhost:' + body.local); + console.info('> Forwarding https://' + body.remote + ' => localhost:' + body.local); } else { - console.log('> Serving ' + body.local + ' as https://' + body.remote); + console.info('> Serving ' + body.local + ' as https://' + body.remote); } } else if ('tcp' === body.module) { - console.log('> Forwarding ' + state.config.relay + ':' + body.remote + ' => localhost:' + body.local); + console.info('> Forwarding ' + state.config.relay + ':' + body.remote + ' => localhost:' + body.local); } else if ('ssh' === body.module) { - console.log('> Forwarding ' + state.config.relay + ' -p ' + body.remote + ' => localhost:' + body.local); - console.log('> Forwarding ssh+https (openssl proxy) => localhost:' + body.local); + console.info('> Forwarding ' + state.config.relay + ' -p ' + body.remote + ' => localhost:' + body.local); + console.info('> Forwarding ssh+https (openssl proxy) => localhost:' + body.local); } else { console.info(JSON.stringify(body, null, 2)); } - console.log(); + console.info(); } }