From 16ba3a8768e0256f465568702acfcb9c6efbcfd5 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 24 Oct 2023 00:01:14 +0800 Subject: [PATCH] style: update logger --- src/server/model/monitor/provider/http.ts | 2 +- src/server/utils/logger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/model/monitor/provider/http.ts b/src/server/model/monitor/provider/http.ts index b779d91..bdbd231 100644 --- a/src/server/model/monitor/provider/http.ts +++ b/src/server/model/monitor/provider/http.ts @@ -96,7 +96,7 @@ function checkCertificate(res: AxiosResponse) { const info = res.request.res.socket.getPeerCertificate(true); const valid = res.request.res.socket.authorized || false; - logger.info('cert', 'Parsing Certificate Info', info); + logger.debug('cert', 'Parsing Certificate Info', info); const parsedInfo = parseCertificateInfo(info); diff --git a/src/server/utils/logger.ts b/src/server/utils/logger.ts index ac1a697..721ab5a 100644 --- a/src/server/utils/logger.ts +++ b/src/server/utils/logger.ts @@ -34,7 +34,7 @@ export const logger = winston.createLogger({ `${timestamp} ${label || '-'} ${level}: ${message}` ) ), - level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', + // level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', }), ], });