Skip to content

Commit

Permalink
Logg JDBC til sikkerlogg
Browse files Browse the repository at this point in the history
  • Loading branch information
androa committed Apr 24, 2024
1 parent 110bca9 commit 20553ad
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import java.lang.System.getProperty
import java.lang.System.getenv

private val logger = KotlinLogging.logger {}
private val sikkerlogg = KotlinLogging.logger("tjenestekall")

// Understands how to create a data source from environment variables
internal object PostgresDataSourceBuilder {
Expand All @@ -23,8 +24,9 @@ internal object PostgresDataSourceBuilder {

val dataSource by lazy {
HikariDataSource().apply {
jdbcUrl =
getOrThrow(DB_URL_KEY)
jdbcUrl = getOrThrow(DB_URL_KEY).also {

Check failure on line 27 in dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/db/PostgresDataSourceBuilder.kt

View workflow job for this annotation

GitHub Actions / Check coding style violations

[ktlint] reported by reviewdog 🐶 A multiline expression should start on a new line Raw Output: dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/db/PostgresDataSourceBuilder.kt:27:23: error: A multiline expression should start on a new line (standard:multiline-expression-wrapping)
sikkerlogg.info { "Setting up datasource with url: $it" }
}
maximumPoolSize = 10
minimumIdle = 1
idleTimeout = 10001
Expand Down

0 comments on commit 20553ad

Please sign in to comment.