Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lagt til logging av CallId i kall mot pensjon #3438

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Conversation

stigus
Copy link
Contributor

@stigus stigus commented Mar 14, 2024

No description provided.

@stigus stigus requested a review from a team as a code owner March 14, 2024 12:45
public Flux<PensjonforvalterResponse> lagreInntekter(PensjonPoppInntektRequest pensjonPoppInntektRequest) {

log.info("Popp lagre inntekt {}", pensjonPoppInntektRequest);
String callId = generateCallId();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nå når callId også skal logges kunne det være et alternativ å flytte loggingen inn i command-fil, istedet for å introdusere et parameter til. Det vil være enklere å lese og vedlikeholde, men dette er også OK.
(så lite kode som mulig bør være målet 😄 )

public Flux<PensjonforvalterResponse> annullerSamboer(String ident, String periodeId, String miljoe) {

log.info("Pensjon samboer annuller {} periodeId {}", ident, periodeId);
String callId = generateCallId();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bruk generelt var på venstre side av variabelnavn, lettere å lese og vedlikeholde. (Noen ganger er det gode grunner til å ha eksplisitt type dog.)

stigus added 2 commits April 2, 2024 14:36
# Conflicts:
#	apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/pensjonforvalter/command/LagreAlderspensjonCommand.java
#	apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/pensjonforvalter/command/LagrePoppInntektCommand.java
#	apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/pensjonforvalter/command/LagreTpForholdCommand.java
#	apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/pensjonforvalter/command/LagreTpYtelseCommand.java
#	apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/pensjonforvalter/command/LagreUforetrygdCommand.java
@stigus stigus merged commit 75528ba into master Apr 3, 2024
384 of 385 checks passed
@stigus stigus deleted the feature/callid-pensjon branch April 3, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants