提交 ddd98103 编写于 作者: X xiyangxixian

fix logOutPut

上级 cc6de503
...@@ -377,10 +377,10 @@ func FormatDSN(env *dsn) string { ...@@ -377,10 +377,10 @@ func FormatDSN(env *dsn) string {
// SoarVersion soar version information // SoarVersion soar version information
func SoarVersion() { func SoarVersion() {
fmt.Println("Version:", Version) //fmt.Println("Version:", Version)
fmt.Println("Branch:", Branch) //fmt.Println("Branch:", Branch)
fmt.Println("Compile:", Compile) //fmt.Println("Compile:", Compile)
fmt.Println("GitDirty:", GitDirty) //fmt.Println("GitDirty:", GitDirty)
} }
// 因为vitess sqlparser 使用了 glog 中也会使用 flag,为了不让用户困扰我们单独写一个 usage // 因为vitess sqlparser 使用了 glog 中也会使用 flag,为了不让用户困扰我们单独写一个 usage
...@@ -591,7 +591,7 @@ func readCmdFlags() error { ...@@ -591,7 +591,7 @@ func readCmdFlags() error {
Config.QueryTimeOut = *queryTimeOut Config.QueryTimeOut = *queryTimeOut
Config.LogLevel = *logLevel Config.LogLevel = *logLevel
if filepath.IsAbs(*logOutput) || BaseDir == "" { if filepath.IsAbs(*logOutput) || *logOutput == "" {
Config.LogOutput = *logOutput Config.LogOutput = *logOutput
} else { } else {
Config.LogOutput = filepath.Join(BaseDir, *logOutput) Config.LogOutput = filepath.Join(BaseDir, *logOutput)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册