diff --git a/play-actuator-indicators/database/jdbc/src/main/scala/play/actuator/health/indicator/DatabaseJdbcIndicator.scala b/play-actuator-indicators/database/jdbc/src/main/scala/play/actuator/health/indicator/DatabaseJdbcIndicator.scala index 5aeb53d9..27ecd149 100644 --- a/play-actuator-indicators/database/jdbc/src/main/scala/play/actuator/health/indicator/DatabaseJdbcIndicator.scala +++ b/play-actuator-indicators/database/jdbc/src/main/scala/play/actuator/health/indicator/DatabaseJdbcIndicator.scala @@ -59,14 +59,12 @@ class DatabaseJdbcIndicator @Inject() (database: Database) extends HealthIndicat builder .withStatus(ActuatorEnum.Up) .withDetail("name", this.database.name) - .withDetail("url", this.database.url) .withDetail("driver", metaData.getDriverName) } catch { case e: Exception => builder .withStatus(ActuatorEnum.Down) .withDetail("name", this.database.name) - .withDetail("url", this.database.url) .withDetail("exception", e.getMessage) } } diff --git a/play-actuator-indicators/database/slick/src/main/scala/play/actuator/health/indicator/DatabaseSlickIndicator.scala b/play-actuator-indicators/database/slick/src/main/scala/play/actuator/health/indicator/DatabaseSlickIndicator.scala index 9b91f5d4..4925ed2e 100644 --- a/play-actuator-indicators/database/slick/src/main/scala/play/actuator/health/indicator/DatabaseSlickIndicator.scala +++ b/play-actuator-indicators/database/slick/src/main/scala/play/actuator/health/indicator/DatabaseSlickIndicator.scala @@ -66,14 +66,12 @@ class DatabaseSlickIndicator @Inject() ( builder .withStatus(ActuatorEnum.Up) .withDetail("name", this.dbConfigProvider.get.profileName) - .withDetail("url", this.config.getString("slick.dbs.default.db.url")) .withDetail("driver", metaData.getDriverName) } catch { case e: Exception => builder .withStatus(ActuatorEnum.Down) .withDetail("name", this.dbConfigProvider.get.profileName) - .withDetail("url", this.config.getString("slick.dbs.default.db.url")) .withDetail("exception", e.getMessage) } }