File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
iay/src/main/java/no/nav/foreldrepenger/abakus/registerdata
kobling/src/main/java/no/nav/foreldrepenger/abakus/kobling Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -71,4 +71,5 @@ protected void prosesser(ProsessTaskData prosessTaskData) {
71
71
InntektArbeidYtelseGrunnlagBuilder builder = innhentTjeneste .innhentRegisterdata (kobling , informasjonsElementer );
72
72
iayTjeneste .lagre (kobling .getKoblingReferanse (), builder );
73
73
}
74
+
74
75
}
Original file line number Diff line number Diff line change 3
3
import no .nav .foreldrepenger .abakus .kobling .repository .LåsRepository ;
4
4
import no .nav .vedtak .felles .prosesstask .api .ProsessTaskData ;
5
5
import no .nav .vedtak .felles .prosesstask .api .ProsessTaskHandler ;
6
+ import no .nav .vedtak .log .mdc .MdcExtendedLogContext ;
6
7
7
8
public abstract class KoblingTask implements ProsessTaskHandler {
8
9
10
+ private static final MdcExtendedLogContext LOG_CONTEXT = MdcExtendedLogContext .getContext ("prosess" );
11
+
9
12
private LåsRepository låsRepository ;
10
13
11
14
public KoblingTask () {
@@ -19,6 +22,7 @@ public KoblingTask(LåsRepository låsRepository) {
19
22
public void doTask (ProsessTaskData prosessTaskData ) {
20
23
String nyKoblingId = prosessTaskData .getPropertyValue (TaskConstants .KOBLING_ID );
21
24
Long koblingId = nyKoblingId != null ? Long .valueOf (nyKoblingId ) : Long .valueOf (prosessTaskData .getBehandlingId ());
25
+ LOG_CONTEXT .add ("koblingId" , koblingId );
22
26
23
27
KoblingLås koblingLås = låsRepository .taLås (koblingId );
24
28
You can’t perform that action at this time.
0 commit comments