Skip to content

Commit 3a1a04b

Browse files
committed
Bugfix: Fix logging on response streams.
1 parent e024a09 commit 3a1a04b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,7 @@ export class Service extends HttpDuplex {
164164
}
165165
);
166166

167-
(respStream as any).log = () => {
168-
// eslint-disable-next-line prefer-rest-params
169-
(this as any).log(...arguments);
170-
};
167+
(respStream as any).log = this.log.bind(this);
171168

172169
this.emit('response', respStream, function endResponse() {
173170
(res as any).queue(Buffer.from('0000'));

0 commit comments

Comments
 (0)