Skip to content

Commit

Permalink
Legger til AdressingFeature og midlertidig logging
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikg committed Sep 26, 2023
1 parent b36b9c0 commit f49d96f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package no.nav.etterlatte.config

import jdk.jpackage.internal.Log.setVerbose
import no.nav.etterlatte.auth.sts.ServiceUserConfig
import no.nav.etterlatte.auth.sts.wrapInStsClient
import no.nav.okonomi.tilbakekrevingservice.TilbakekrevingPortType
import org.apache.cxf.ext.logging.LoggingFeature
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean
import org.apache.cxf.ws.addressing.WSAddressingFeature
import org.slf4j.LoggerFactory
import javax.xml.namespace.QName

Expand All @@ -25,6 +27,7 @@ class TilbakekrevingConfig(config: Config, private val enableLogging: Boolean =
endpointName = PORT
serviceClass = TilbakekrevingPortType::class.java
if (enableLogging) features = listOf(
WSAddressingFeature(),
LoggingFeature().apply {
setVerbose(true)
setPrettyLogging(true)
Expand Down

0 comments on commit f49d96f

Please sign in to comment.