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
|
||||
#MIGRATE_DB=false
|
||||
#LOG_LEVEL=DEBUG
|
||||
#HIDE_LOGS= <space separated list of log providers to ignore>
|
||||
|
||||
#METRICS
|
||||
#RECORD_PERFORMANCE=true
|
||||
|
|
|
|||
|
|
@ -102,4 +102,13 @@ export const resetDisabledLoggers = () => {
|
|||
export const disableLoggers = (appNamesToDisable: string[], componentsToDisable: string[]) => {
|
||||
disabledApps.push(...appNamesToDisable)
|
||||
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