Skip to content

Commit

Permalink
RC-51: added env var for actuator
Browse files Browse the repository at this point in the history
  • Loading branch information
makurohashami authored Apr 13, 2024
1 parent ce500d5 commit 89c7646
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ start. [Install Docker](https://docs.docker.com/get-docker/).
| CLOUDINARY_URL | Enter the Cloudinary URL here after setting up your own Cloudinary storage. Optional if another CDN_CLIENT is configured | |
| CLOUDINARY_APP_PREFIX | To save files to a separate folder instead of the storage root, specify its name. For example `realtor-connect-prod` | Empty String |
| SCHEDULER_ENABLED | Enables or disables application scheduled tasks | `true` |
| ACTUATOR_SHOW_VALUES | Enables or disables showing env variables in actuator. Possible values: `NEVER`, `ALWAYS` and `WHEN_AUTHORIZED` | `NEVER` |
| APP_LOGGER_LEVEL | Set logger level for application source code. Possible values: `ERROR`, `WARN`, `INFO`, `DEBUG` and `TRACE` | `INFO` |
| CUSTOM_LOGGER_LEVEL | Some classes and methods in the application are automatically logged at the start and end. The `AppLoggerInterceptor` is used for this. Specify the level at which this class will be written. If the level is higher than or equal to the current level in the application, you will see logs. Possible values: `ERROR`, `WARN`, `INFO`, `DEBUG` and `TRACE` | `DEBUG` |

Expand Down Expand Up @@ -219,7 +220,7 @@ Additional information:
- Only authenticated users can see your contacts, otherwise they will have an empty list.
- You can find information about the possible types of contacts in the Schemas section at the bottom of the Swagger
page. This applies to any object in the app.
![schemas-example](https://res.cloudinary.com/dhseztjx1/image/upload/v1711897283/realtor-connect-common/samples/schemas-example.jpg)
![schemas-example](https://res.cloudinary.com/dhseztjx1/image/upload/v1711897283/realtor-connect-common/samples/schemas-example.jpg)

#### 4. Create real estate and add photos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void filterContacts(Object result) {
filterPageRealtorDto((Page<RealtorDto>) pageResult);
}
} else {
log.debug("Cannot filter contacts because returned unsupported type: " + result.getClass().getSimpleName());
log.warn("Cannot filter contacts because returned unsupported type: {}", result.getClass().getSimpleName());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Object filterRealEstates(ProceedingJoinPoint joinPoint) throws Throwable
}
}

log.error("Cannot filter real estates because returned unsupported type: " + result.getClass().getSimpleName());
log.warn("Cannot filter real estates because returned unsupported type: {}", result.getClass().getSimpleName());
return result;
}

Expand Down Expand Up @@ -70,7 +70,7 @@ public void filterRealEstatePhotos(Object result) {
filterRealEstatePhotosDtoList((List<RealEstatePhotoDto>) listResult);
}
} else {
log.error("Cannot filter real estates photos because returned unsupported type: " + result.getClass().getSimpleName());
log.warn("Cannot filter real estates photos because returned unsupported type: {}", result.getClass().getSimpleName());
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ logging:
org.flywaydb: info

management:
show-values: ${ACTUATOR_SHOW_VALUES:NEVER}
endpoints:
web:
exposure:
include: "*"
endpoint:
env:
show-values: ALWAYS
show-values: ${management.show-values}
configprops:
show-values: ALWAYS
show-values: ${management.show-values}

server:
port: 8080
Expand Down

0 comments on commit 89c7646

Please sign in to comment.