mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
removed hostname from logs
This commit is contained in:
parent
e9322cc1ba
commit
ba644a37b7
@ -32,6 +32,7 @@ function configureLogger() {
|
||||
setLoggerName('main');
|
||||
|
||||
let logger = pinoms({
|
||||
redact: { paths: ['hostname'], remove: true },
|
||||
streams: [
|
||||
{
|
||||
stream: process.stdout,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user