fix: env depend on the flag (#18231)

This commit is contained in:
jiuker 2023-10-13 06:32:38 +08:00 committed by GitHub
parent 9a877734b2
commit 20b79f8945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -579,14 +579,14 @@ func serverMain(ctx *cli.Context) {
setDefaultProfilerRates()
// Handle all server environment vars.
serverHandleEnvVars()
// Handle all server command args.
bootstrapTrace("serverHandleCmdArgs", func() {
serverHandleCmdArgs(ctx)
})
// Handle all server environment vars.
serverHandleEnvVars()
// Initialize globalConsoleSys system
bootstrapTrace("newConsoleLogger", func() {
globalConsoleSys = NewConsoleLogger(GlobalContext)