hide log
This commit is contained in:
parent
37693b5e57
commit
d98832c5f7
2 changed files with 11 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ LSP_MAX_FEE_BPS=100
|
||||||
#ALLOW_BALANCE_MIGRATION=false
|
#ALLOW_BALANCE_MIGRATION=false
|
||||||
#MIGRATE_DB=false
|
#MIGRATE_DB=false
|
||||||
#LOG_LEVEL=DEBUG
|
#LOG_LEVEL=DEBUG
|
||||||
|
#HIDE_LOGS= <space separated list of log providers to ignore>
|
||||||
|
|
||||||
#METRICS
|
#METRICS
|
||||||
#RECORD_PERFORMANCE=true
|
#RECORD_PERFORMANCE=true
|
||||||
|
|
|
||||||
|
|
@ -103,3 +103,12 @@ export const disableLoggers = (appNamesToDisable: string[], componentsToDisable:
|
||||||
disabledApps.push(...appNamesToDisable)
|
disabledApps.push(...appNamesToDisable)
|
||||||
disabledComponents.push(...componentsToDisable)
|
disabledComponents.push(...componentsToDisable)
|
||||||
}
|
}
|
||||||
|
const disableFromEnv = () => {
|
||||||
|
const disabledApps = process.env.HIDE_LOGS
|
||||||
|
if (disabledApps) {
|
||||||
|
const loggers = disabledApps.split(" ")
|
||||||
|
resetDisabledLoggers()
|
||||||
|
disableLoggers(loggers, loggers)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
disableFromEnv()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue