removed hostname from logs

This commit is contained in:
Jan Prochazka 2023-01-22 12:35:11 +01:00
parent e9322cc1ba
commit ba644a37b7
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ function configureLogger() {
setLoggerName('main');
let logger = pinoms({
redact: { paths: ['hostname'], remove: true },
streams: [
{
stream: process.stdout,

View File

@ -2,7 +2,7 @@ import pino, { Logger } from 'pino';
let _logger: Logger;
let _name: string = null;
const defaultLogger: Logger = pino();
const defaultLogger: Logger = pino({ redact: { paths: ['hostname'], remove: true } });
export function setLogger(value: Logger) {
_logger = value;