style: update logger

This commit is contained in:
moonrailgun 2023-10-24 00:01:14 +08:00
parent 6f17859759
commit 16ba3a8768
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ function checkCertificate(res: AxiosResponse<any, any>) {
const info = res.request.res.socket.getPeerCertificate(true); const info = res.request.res.socket.getPeerCertificate(true);
const valid = res.request.res.socket.authorized || false; 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); const parsedInfo = parseCertificateInfo(info);

View File

@ -34,7 +34,7 @@ export const logger = winston.createLogger({
`${timestamp} ${label || '-'} ${level}: ${message}` `${timestamp} ${label || '-'} ${level}: ${message}`
) )
), ),
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', // level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
}), }),
], ],
}); });