diff --git a/mediator/src/main/kotlin/no/nav/dagpenger/mottak/Config.kt b/mediator/src/main/kotlin/no/nav/dagpenger/mottak/Config.kt index 916a774e..b99f2705 100644 --- a/mediator/src/main/kotlin/no/nav/dagpenger/mottak/Config.kt +++ b/mediator/src/main/kotlin/no/nav/dagpenger/mottak/Config.kt @@ -69,7 +69,7 @@ internal object Config { ) } - internal fun String.addHttprotocoll(): String = "https://$this" + private fun String.addHttpsrotocoll(): String = "https://$this" val Configuration.dpProxyTokenProvider: () -> String by lazy { { @@ -123,11 +123,11 @@ internal object Config { fun Configuration.skjermingApiUrl() = this[Key("SKJERMING_API_URL", stringType)] - fun Configuration.dpProxyUrl() = this[Key("DP_PROXY_HOST", stringType)].addHttprotocoll() + fun Configuration.dpProxyUrl() = this[Key("DP_PROXY_HOST", stringType)].addHttpsrotocoll() - fun Configuration.pdlApiUrl() = this[Key("PDL_API_HOST", stringType)].addHttprotocoll() + fun Configuration.pdlApiUrl() = this[Key("PDL_API_HOST", stringType)].addHttpsrotocoll() - fun Configuration.gosysUrl(): String = this[Key("OPPGAVE_URL", stringType)].addHttprotocoll() + fun Configuration.gosysUrl(): String = this[Key("OPPGAVE_URL", stringType)].addHttpsrotocoll() fun asMap(): Map = properties.list().reversed().fold(emptyMap()) { map, pair -> diff --git a/mediator/src/main/kotlin/no/nav/dagpenger/mottak/behov/saksbehandling/gosys/Gosys.kt b/mediator/src/main/kotlin/no/nav/dagpenger/mottak/behov/saksbehandling/gosys/Gosys.kt index b672fcc0..53295130 100644 --- a/mediator/src/main/kotlin/no/nav/dagpenger/mottak/behov/saksbehandling/gosys/Gosys.kt +++ b/mediator/src/main/kotlin/no/nav/dagpenger/mottak/behov/saksbehandling/gosys/Gosys.kt @@ -128,7 +128,7 @@ internal class GosysClient(config: Configuration) : GosysOppslag { setBody(oppgave) }.body().id } catch (e: Exception) { - logger.error { "Kunne ikke opprette gosys oppgave for journalpost med id ${oppgave.journalpostId}" } + logger.error(e) { "Kunne ikke opprette gosys oppgave for journalpost med id ${oppgave.journalpostId}" } throw e } }