diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java index fa8033308b6e..83f693a155a8 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java @@ -208,13 +208,7 @@ private static BiFunction, ConfigSourceInterceptorContext, Opti } private static Optional resolveFileLogLocation(Optional value, ConfigSourceInterceptorContext configSourceInterceptorContext) { - String location = value.get(); - - if (location.endsWith(File.separator)) { - return of(location + LoggingOptions.DEFAULT_LOG_FILENAME); - } - - return value; + return value.map(location -> location.endsWith(File.separator) ? location + LoggingOptions.DEFAULT_LOG_FILENAME : location); } private static Level toLevel(String categoryLevel) throws IllegalArgumentException {