Skip to content

Commit

Permalink
logging: fix typo while setting log file path ref #3046 #3047
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Jul 30, 2023
1 parent a822582 commit f53ac2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jooby/src/main/java/io/jooby/LoggingService.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ static String configure(@NonNull ClassLoader classLoader, @NonNull List<String>
.findFirst()
.map(Path::toAbsolutePath);
if (logPath.isPresent()) {
System.setProperty(loggingService.getPropertyName(), logPath.toString());
return logPath.toString();
System.setProperty(loggingService.getPropertyName(), logPath.get().toString());
return logPath.get().toString();
}
// Fallback to classpath:
var logResource =
Expand Down

0 comments on commit f53ac2f

Please sign in to comment.