Skip to content

Commit eb07e5a

Browse files
apsantisoAndres Pinto
andauthored
chore(logs): set log levels (#22)
Co-authored-by: Andres Pinto <apinto@shokworks.io>
1 parent 2ec7d8c commit eb07e5a

3 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/forwarder-proxy/method-handlers/connect-handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class ProxyConnectService {
7777
proxyRequest.end();
7878

7979
clientSocket.on('error', () => {
80-
this.logger.error('Connection aborted by client');
8180
proxyRequest.destroy();
8281
clientSocket.destroy();
8382
});

src/forwarder-proxy/method-handlers/request-handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class ProxyRequestService {
7979
});
8080

8181
req.on('error', () => {
82-
this.logger.error('HTTP connection aborted by client');
8382
proxyRequest.destroy();
8483
req.destroy();
8584
});

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async function bootstrap() {
2121
colors: config.isDevelopment,
2222
prefix: 'Proxy-api',
2323
compact: true,
24+
logLevels: config.isDevelopment ? ['debug'] : ['log'],
2425
}),
2526
});
2627

0 commit comments

Comments
 (0)