Skip to content

Commit ae1cce2

Browse files
committed
fix compilation error of configLog
1 parent 5d14103 commit ae1cce2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

kyuubi-common/src/main/scala/org/apache/kyuubi/service/authentication/JdbcAuthenticationProviderImpl.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,14 @@ class JdbcAuthenticationProviderImpl(conf: KyuubiConf) extends PasswdAuthenticat
9898
}
9999

100100
private def checkJdbcConfigs(): Unit = {
101-
val configLog = {
102-
case (config: String, value: Option[String]) => s"JDBCAuthConfig: $config = '${value.orNull}'"
103-
case (config: String, value: String) => s"JDBCAuthConfig: $config = '$value'"
104-
}
101+
val configLog =
102+
(config: String, value: Option[String]) =>
103+
s"JDBCAuthConfig: $config = '${value.orNull}'"
105104

106105
debug(configLog("Driver Class", driverClass))
107106
debug(configLog("JDBC URL", authDbJdbcUrl))
108107
debug(configLog("Database user", authDbUser))
109-
debug(configLog("Database password", JdbcUtils.redactPassword(authDbPassword)))
108+
debug(configLog("Database password", Some(JdbcUtils.redactPassword(authDbPassword))))
110109
debug(configLog("Query SQL", authQuery))
111110

112111
// Check if JDBC parameters valid

0 commit comments

Comments
 (0)