Skip to content

Commit

Permalink
fix: remove unused logging (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Aug 7, 2019
1 parent ae23054 commit 4cb4967
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand All @@ -280,7 +279,6 @@ function teenyRequest(
requestStream.emit('response', response);
},
err => {
console.log('such a nice error:' + err);
requestStream.emit('error', err);
}
);
Expand Down

0 comments on commit 4cb4967

Please sign in to comment.