warn -> debug log

This commit is contained in:
Shreyas Goenka 2024-11-22 14:53:58 +01:00
parent 4233a7c292
commit 3ac1bb1853
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 6 additions and 6 deletions

View File

@ -67,31 +67,31 @@ func showSingleNodeClusterWarning(ctx context.Context, v dyn.Value) bool {
profile, ok := conf.SparkConf["spark.databricks.cluster.profile"] profile, ok := conf.SparkConf["spark.databricks.cluster.profile"]
if !ok { if !ok {
log.Warnf(ctx, "spark_conf spark.databricks.cluster.profile not found in single-node cluster spec") log.Debugf(ctx, "spark_conf spark.databricks.cluster.profile not found in single-node cluster spec")
return true return true
} }
if profile != "singleNode" { if profile != "singleNode" {
log.Warnf(ctx, "spark_conf spark.databricks.cluster.profile is not singleNode in single-node cluster spec: %s", profile) log.Debugf(ctx, "spark_conf spark.databricks.cluster.profile is not singleNode in single-node cluster spec: %s", profile)
return true return true
} }
master, ok := conf.SparkConf["spark.master"] master, ok := conf.SparkConf["spark.master"]
if !ok { if !ok {
log.Warnf(ctx, "spark_conf spark.master not found in single-node cluster spec") log.Debugf(ctx, "spark_conf spark.master not found in single-node cluster spec")
return true return true
} }
if !strings.HasPrefix(master, "local") { if !strings.HasPrefix(master, "local") {
log.Warnf(ctx, "spark_conf spark.master does not start with local in single-node cluster spec: %s", master) log.Debugf(ctx, "spark_conf spark.master does not start with local in single-node cluster spec: %s", master)
return true return true
} }
resourceClass, ok := conf.CustomTags["ResourceClass"] resourceClass, ok := conf.CustomTags["ResourceClass"]
if !ok { if !ok {
log.Warnf(ctx, "custom_tag ResourceClass not found in single-node cluster spec") log.Debugf(ctx, "custom_tag ResourceClass not found in single-node cluster spec")
return true return true
} }
if resourceClass != "SingleNode" { if resourceClass != "SingleNode" {
log.Warnf(ctx, "custom_tag ResourceClass is not SingleNode in single-node cluster spec: %s", resourceClass) log.Debugf(ctx, "custom_tag ResourceClass is not SingleNode in single-node cluster spec: %s", resourceClass)
return true return true
} }