Skip to content

Commit 4e8ad29

Browse files
committed
Use debug() instead of console.error()
Silents the module by default and also prints the has_error boolean in case its wanted. Ideally there would be a way to catch 'end' and 'close' upstream.
1 parent dc29319 commit 4e8ad29

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

https-proxy-agent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ function connect (req, _opts, fn) {
113113
}
114114

115115
function onclose (err) {
116-
console.error('onclose');
116+
debug('onclose had error', err);
117117
}
118118

119-
function onend (err) {
120-
console.error('onend');
119+
function onend () {
120+
debug('onend');
121121
}
122122

123123
function onerror (err) {

0 commit comments

Comments
 (0)