feat(proxy): dedupe logs

This commit is contained in:
Julien Fontanet
2023-01-15 13:08:57 +01:00
parent 448d115d49
commit 05197b93ee

View File

@@ -1,5 +1,6 @@
import transportConsole from '@xen-orchestra/log/transports/console' import transportConsole from '@xen-orchestra/log/transports/console'
import { configure } from '@xen-orchestra/log/configure' import { configure } from '@xen-orchestra/log/configure'
import { dedupe } from '@xen-orchestra/log/dedupe'
export default class Logs { export default class Logs {
constructor(app) { constructor(app) {
@@ -9,7 +10,7 @@ export default class Logs {
{ {
filter: [process.env.DEBUG, filter], filter: [process.env.DEBUG, filter],
level, level,
transport, transport: dedupe(transport),
}, },
]) ])
}) })