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

View File

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