Skip to content

Commit

Permalink
Add error message inclusion across applications (#3445)
Browse files Browse the repository at this point in the history
Add error message inclusion across applications

The configuration changes mean error messages will now be included in API responses for all applications. This improves error traceability and debugging. Changes were made in the 'application.yml' or 'application.yaml' files across multiple applications.
  • Loading branch information
krharum authored Mar 22, 2024
1 parent d48b5e0 commit 08ba8ef
Show file tree
Hide file tree
Showing 71 changed files with 309 additions and 48 deletions.
4 changes: 3 additions & 1 deletion apps/adresse-service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/amelding-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

consumers:
dolly-backend:
Expand Down
4 changes: 3 additions & 1 deletion apps/brreg-stub/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/bruker-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
7 changes: 7 additions & 0 deletions apps/budpro-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ consumers:
app:
security:
allow-api: true

server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always
7 changes: 2 additions & 5 deletions apps/dolly-backend/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ server:
encoding:
charset: UTF-8
max-http-header-size: 70KB
error:
include-message: always

spring:
cloud:
Expand Down Expand Up @@ -83,11 +85,6 @@ open:
total-fields: 1500
index: bestilling

tps:
person:
service:
wait: 30_000

consumers:
testnav-organisasjon-forvalter:
name: testnav-organisasjon-forvalter
Expand Down
2 changes: 2 additions & 0 deletions apps/dolly-frontend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

logging:
pattern:
Expand Down
2 changes: 2 additions & 0 deletions apps/dollystatus/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

logging:
level:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

logging:
level:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
2 changes: 2 additions & 0 deletions apps/faste-data-frontend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

logging:
level:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/generer-navn-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/miljoer-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/organisasjon-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/orgnummer-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
2 changes: 2 additions & 0 deletions apps/oversikt-frontend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ server:
servlet:
encoding:
charset: UTF-8
error:
include-message: always

logging:
level:
Expand Down
4 changes: 3 additions & 1 deletion apps/pdl-forvalter/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/person-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
4 changes: 3 additions & 1 deletion apps/profil-api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ management:
server:
servlet:
encoding:
charset: UTF-8
charset: UTF-8
error:
include-message: always
Loading

0 comments on commit 08ba8ef

Please sign in to comment.