summaryrefslogtreecommitdiffstats
path: root/container-accesslogging
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-10-14 15:21:24 +0200
committerJon Bratseth <bratseth@oath.com>2018-10-14 15:21:24 +0200
commitb6835afcbd43195b363c9e578ad151030ce7f9fe (patch)
tree7e5893b29a35dc22e73be92fbe2786300d0e0889 /container-accesslogging
parentcb943c079ba1cd53f9e70e92e9c03343e85ec780 (diff)
Minor fixes
Diffstat (limited to 'container-accesslogging')
-rw-r--r--container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java4
-rw-r--r--container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java
index 8bb072b5a64..1f56523bce6 100644
--- a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java
+++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFileHandler.java
@@ -226,7 +226,7 @@ public class LogFileHandler extends StreamHandler {
}
// Throw InterruptedException upwards rather than relying on isInterrupted to stop the thread as
- // isInterrupted() returns false after inerruption in p.waitFor
+ // isInterrupted() returns false after interruption in p.waitFor
private void internalRotateNow() throws InterruptedException {
// figure out new file name, then
// use super.setOutputStream to switch to a new file
@@ -295,7 +295,7 @@ public class LogFileHandler extends StreamHandler {
}
/** Name files by date - create a symlink with a constant name to the newest file */
- private void createSymlinkToCurrentFile() throws InterruptedException {
+ private void createSymlinkToCurrentFile() {
if (symlinkName == null) return;
File f = new File(fileName);
File f2 = new File(f.getParent(), symlinkName);
diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java
index 0cedfc0f693..adb4583d405 100644
--- a/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java
+++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/LogFormatter.java
@@ -101,7 +101,7 @@ public class LogFormatter extends Formatter {
* <li>%% %
* </ul>
*/
- public static final String insertDate (String pattern, long time) {
+ public static String insertDate(String pattern, long time) {
DateFormat df = new SimpleDateFormat("yyyy.MM.dd:HH:mm:ss.SSS Z");
df.setTimeZone(TimeZone.getTimeZone("UTC"));
Date date = new Date(time);