diff --git a/inlong-tubemq/tubemq-client-twins/tubemq-client-go/config/config.go b/inlong-tubemq/tubemq-client-twins/tubemq-client-go/config/config.go index 74a4fa1a9fc..5bb894f8a23 100644 --- a/inlong-tubemq/tubemq-client-twins/tubemq-client-go/config/config.go +++ b/inlong-tubemq/tubemq-client-twins/tubemq-client-go/config/config.go @@ -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]) }