feat(proxy): dedupe logs
This commit is contained in:
@@ -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),
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user