diff --git a/common/config.go b/common/config.go index 04a6e2c5ffd63b8d67563e57279301695f721207..d88d513b555cf153784482935ac922f65f062fba 100644 --- a/common/config.go +++ b/common/config.go @@ -377,10 +377,10 @@ func FormatDSN(env *dsn) string { // SoarVersion soar version information func SoarVersion() { - fmt.Println("Version:", Version) - fmt.Println("Branch:", Branch) - fmt.Println("Compile:", Compile) - fmt.Println("GitDirty:", GitDirty) + //fmt.Println("Version:", Version) + //fmt.Println("Branch:", Branch) + //fmt.Println("Compile:", Compile) + //fmt.Println("GitDirty:", GitDirty) } // 因为vitess sqlparser 使用了 glog 中也会使用 flag,为了不让用户困扰我们单独写一个 usage @@ -591,7 +591,7 @@ func readCmdFlags() error { Config.QueryTimeOut = *queryTimeOut Config.LogLevel = *logLevel - if filepath.IsAbs(*logOutput) || BaseDir == "" { + if filepath.IsAbs(*logOutput) || *logOutput == "" { Config.LogOutput = *logOutput } else { Config.LogOutput = filepath.Join(BaseDir, *logOutput)