From 48f54ab2959ff0bf65a1dfd18a0ef7abee110c87 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 3 May 2023 09:46:31 +0200 Subject: [PATCH] Address the issue of Redis credentials being unintentionally revealed in logs. --- .../scala/org/apache/spark/sql/redis/RedisSourceRelation.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/apache/spark/sql/redis/RedisSourceRelation.scala b/src/main/scala/org/apache/spark/sql/redis/RedisSourceRelation.scala index 52105106..bf40db7f 100644 --- a/src/main/scala/org/apache/spark/sql/redis/RedisSourceRelation.scala +++ b/src/main/scala/org/apache/spark/sql/redis/RedisSourceRelation.scala @@ -42,7 +42,7 @@ class RedisSourceRelation(override val sqlContext: SQLContext, ) } - logInfo(s"Redis config initial host: ${redisConfig.initialHost}") + logInfo(s"Redis config initial host: ${redisConfig.initialHost.host}") @transient private val sc = sqlContext.sparkContext