Skip to content

Commit

Permalink
fix(database): ✂️ remove JDBC url detail
Browse files Browse the repository at this point in the history
Fixes #35

Signed-off-by: Felipe Bonezi <[email protected]>
  • Loading branch information
felipebonezi committed Dec 10, 2022
1 parent 1643028 commit 9b2e695
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 9b2e695

Please sign in to comment.