From 0e6cf07ec96ac7a66ffea3d5537c403dc2428bf2 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Tue, 9 Aug 2022 23:57:24 +0200 Subject: [PATCH] Polish LogFileWebEndpoint See gh-32049 --- .../boot/actuate/logging/LogFileWebEndpoint.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/logging/LogFileWebEndpoint.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/logging/LogFileWebEndpoint.java index e7043def919..e7b60ed2a38 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/logging/LogFileWebEndpoint.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/logging/LogFileWebEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,13 +41,13 @@ public class LogFileWebEndpoint { private static final Log logger = LogFactory.getLog(LogFileWebEndpoint.class); - private File externalFile; - private final LogFile logFile; + private final File externalFile; + public LogFileWebEndpoint(LogFile logFile, File externalFile) { - this.externalFile = externalFile; this.logFile = logFile; + this.externalFile = externalFile; } @ReadOperation(produces = "text/plain; charset=UTF-8")