From 40056eb2eef377da612377747f142bea67a3a07f Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Wed, 7 Aug 2019 12:51:21 -0700 Subject: [PATCH] fix: remove unused logging --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2f07f2a..8a6758c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -215,7 +215,7 @@ function teenyRequest( const multipart = reqOpts.multipart as RequestPart[]; if (reqOpts.multipart && multipart.length === 2) { if (!callback) { - console.log('Error, multipart without callback not implemented.'); + console.error('multipart without callback not implemented.'); return; } const boundary: string = uuid.v4(); @@ -271,7 +271,6 @@ function teenyRequest( res => { res.body .on('error', err => { - console.log('whoa there was an error, passing it on: ' + err); requestStream.emit('error', err); }) .pipe(requestStream); @@ -280,7 +279,6 @@ function teenyRequest( requestStream.emit('response', response); }, err => { - console.log('such a nice error:' + err); requestStream.emit('error', err); } );