Skip to content

Commit

Permalink
[INLONG-8791][TubeMQ] Code Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoYou201 committed Apr 21, 2024
1 parent 98ec5da commit bd541fc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,14 @@ func getConfigFromToken(config *Config, values []string) error {
config.Net.Auth.Password = values[1]
case "logPath":
err = log.SetLogPath(values[1])
if err == nil {
config.Log.LogPath = values[1]
}
case "logLevel":
err = log.SetLogLevel(values[1])
if err == nil {
config.Log.LogLevel = values[1]
}
default:
return fmt.Errorf("address format invalid, unknown keys: %v", values[0])
}
Expand Down

0 comments on commit bd541fc

Please sign in to comment.