Skip to content

Commit

Permalink
Småfiks etter review
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneolsen committed Jan 22, 2025
1 parent 5195ebf commit e6b37f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/src/main/java/no/nav/familie/log/filter/LogFilter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class LogFilter(
* that will return whether stacktraces should be exposed or not
* Defaults to always false
*/
private val systemtype: NavSystemtype,
private val exposeErrorDetails: Supplier<Boolean> = Supplier { false },
private val serverName: String? = null,
private val systemtype: NavSystemtype
) : HttpFilter() {
@Throws(ServletException::class, IOException::class)
override fun doFilter(
Expand All @@ -47,7 +47,7 @@ class LogFilter(
val consumerId = httpServletRequest.getHeader(NavHttpHeaders.NAV_CONSUMER_ID.asString())
val callId = resolveCallId(httpServletRequest)

if(systemtype == NavSystemtype.NAV_SAKSBEHANDLINGSSYSTEM || systemtype == NavSystemtype.NAV_INTEGRASJON) {
if (systemtype in listOf(NavSystemtype.NAV_SAKSBEHANDLINGSSYSTEM, NavSystemtype.NAV_INTEGRASJON)) {
MDC.put(MDC_USER_ID, userId)
}

Expand Down

0 comments on commit e6b37f2

Please sign in to comment.