Skip to content

Commit

Permalink
Legger til to debug-logginger
Browse files Browse the repository at this point in the history
  • Loading branch information
klaramargrethehelgemo committed Feb 12, 2025
1 parent 5a13e1a commit 4dac86b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.veilarbvedtaksstotte.service;

import lombok.extern.slf4j.Slf4j;
import no.nav.common.types.identer.AktorId;
import no.nav.poao_tilgang.client.TilgangType;
import no.nav.veilarbvedtaksstotte.client.veilederogenhet.dto.Veileder;
Expand All @@ -21,6 +22,7 @@
import static no.nav.veilarbvedtaksstotte.utils.AutentiseringUtils.erBeslutterForVedtak;

@Service
@Slf4j
public class MeldingService {

private final AuthService authService;
Expand Down Expand Up @@ -52,6 +54,7 @@ public void opprettBrukerDialogMelding(long vedtakId, String melding) {

if (erBeslutterForVedtak(innloggetVeilederIdent, utkast)) {
metricsService.repporterDialogMeldingSendtAvVeilederOgBeslutter(melding, "beslutter");
log.debug("opprettBrukerdialogMelding: melding sendt av beslutter ${}", utkast.getBeslutterProsessStatus());
if (utkast.getBeslutterProsessStatus() == BeslutterProsessStatus.GODKJENT_AV_BESLUTTER) {
sakStatistikkService.kvalitetssikrerGodkjenner(utkast, innloggetVeilederIdent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ import no.nav.common.client.aktoroppslag.AktorOppslagClient
import no.nav.common.types.identer.AktorId
import no.nav.common.types.identer.EnhetId
import no.nav.common.types.identer.Fnr
import no.nav.veilarbvedtaksstotte.client.aiaBackend.AiaBackendClientImpl
import no.nav.veilarbvedtaksstotte.client.veilarboppfolging.VeilarboppfolgingClient
import no.nav.veilarbvedtaksstotte.config.EnvironmentProperties
import no.nav.veilarbvedtaksstotte.domain.statistikk.*
import no.nav.veilarbvedtaksstotte.domain.vedtak.Vedtak
import no.nav.veilarbvedtaksstotte.repository.SakStatistikkRepository
import no.nav.veilarbvedtaksstotte.utils.SAK_STATISTIKK_PAA
import no.nav.veilarbvedtaksstotte.utils.SecureLog.secureLog
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import java.time.Instant
Expand Down Expand Up @@ -155,7 +158,9 @@ class SakStatistikkService @Autowired constructor(

fun kvalitetssikrerGodkjenner(vedtak: Vedtak, innloggetVeileder: String) {
val statistikkPaa = unleashClient.isEnabled(SAK_STATISTIKK_PAA)
val log: Logger = LoggerFactory.getLogger(AiaBackendClientImpl::class.java)
if (statistikkPaa) {
log.debug("Er i kvalitetssikrerGodkjenner - sakstatistikk")
val aktorId = AktorId(vedtak.aktorId)
val fnr = aktorOppslagClient.hentFnr(aktorId)

Expand Down

0 comments on commit 4dac86b

Please sign in to comment.