From ba644a37b729e4a4dab7a3f9aa2bd0307727093c Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 22 Jan 2023 12:35:11 +0100 Subject: [PATCH] removed hostname from logs --- packages/api/src/index.js | 1 + packages/tools/src/getLogger.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/index.js b/packages/api/src/index.js index 65fc0f9f..9828ecf7 100644 --- a/packages/api/src/index.js +++ b/packages/api/src/index.js @@ -32,6 +32,7 @@ function configureLogger() { setLoggerName('main'); let logger = pinoms({ + redact: { paths: ['hostname'], remove: true }, streams: [ { stream: process.stdout, diff --git a/packages/tools/src/getLogger.ts b/packages/tools/src/getLogger.ts index ef35df6a..25edb424 100644 --- a/packages/tools/src/getLogger.ts +++ b/packages/tools/src/getLogger.ts @@ -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;