Skip to content

Commit

Permalink
Remove smgcp-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Oct 13, 2023
1 parent 2399c3b commit af836bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ This the high level flow for the application
syfosmregler --- syfosmregister;
syfosmregler --- PDL;
syfosmregler --- flex-syketilfelle;
syfosmregler --- smgcp-proxy;
smgcp-proxy --- btsys;
syfosmregler --- btsys;
```

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LegeSuspensjonClient(
accept(ContentType.Application.Json)
val accessToken = azureAdV2Client.getAccessToken(scope)
if (accessToken?.accessToken == null) {
throw RuntimeException("Klarte ikke hente ut accesstoken for smgcp-proxy")
throw RuntimeException("Klarte ikke hente ut accesstoken for btsys")
}
headers {
append("Nav-Call-Id", ediloggid)
Expand All @@ -55,13 +55,13 @@ class LegeSuspensjonClient(
HttpStatusCode.OK -> httpResponse.body()
else -> {
log.error(
"Btsys (smgcp-proxy) svarte med kode {} for ediloggId {}, {}",
"Btsys svarte med kode {} for ediloggId {}, {}",
httpResponse.status,
ediloggid,
fields(loggingMeta),
)
throw IOException(
"Btsys (smgcp-proxy) svarte med uventet kode ${httpResponse.status} for $ediloggid"
"Btsys svarte med uventet kode ${httpResponse.status} for $ediloggid"
)
}
}
Expand Down

0 comments on commit af836bd

Please sign in to comment.