-
Notifications
You must be signed in to change notification settings - Fork 0
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
Flytt over relevant kode fra familie-felles http #1650
Conversation
1cb5bdf
to
2790035
Compare
uri: URI, | ||
): T { | ||
if (!respons.statusCode.is2xxSuccessful) { | ||
secureLogger.info("Kall mot $uri feilet: ${respons.body}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secureLogger.info("Kall mot $uri feilet: ${respons.body}") | |
secureLogger.info("Kall mot {} feilet: {}", uri, respons.body) |
): T { | ||
if (!respons.statusCode.is2xxSuccessful) { | ||
secureLogger.info("Kall mot $uri feilet: ${respons.body}") | ||
log.info("Kall mot $uri feilet: ${respons.statusCode}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Samme her
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bare sjekk hele siden
return try { | ||
val preferredUsername = | ||
SpringTokenValidationContextHolder().getTokenValidationContext().getClaims("azuread").get("preferred_username") | ||
return preferredUsername == null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`preferredUsername.isNull()` eller lignende?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tenker == null er like greit, men har heller ikke tenkt å gjøre så mye endringer her siden dette er copy pasta. Vil uansett kvitte meg med hele dritten 🤠
): List<Journalpost> { | ||
SecureLog.medContext(logContext) { | ||
info( | ||
"henter journalposter for bruker med ident ${journalposterForBrukerRequest.brukerId} " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴
@@ -54,7 +53,9 @@ class PdlClient( | |||
logger.medContext(logContext) { | |||
warn("Advarsel ved henting av personinfo fra PDL. Se securelogs for detaljer.") | |||
} | |||
secureLogger.warn("Advarsel ved henting av personinfo fra PDL: ${respons.extensions?.warnings}") | |||
SecureLog.medContext(logContext) { | |||
warn("Advarsel ved henting av personinfo fra PDL: ${respons.extensions?.warnings}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Denne filen også
2a69b3a
to
fe7057f
Compare
fe7057f
to
70fbce1
Compare
70fbce1
to
704c5c7
Compare
704c5c7
to
930fd59
Compare
No description provided.