From 89fa2fd9926579e6e2b24adf4281d063ecf62c43 Mon Sep 17 00:00:00 2001 From: gjoranv Date: Fri, 24 Apr 2020 21:23:29 +0200 Subject: Replace remaining LogLevel. with corresponding Level --- .../com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'controller-api') diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java index c16e72e3ad1..49813474315 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java @@ -63,7 +63,7 @@ public class LogEntry { .filter(parts -> parts.length == 7) .map(parts -> new LogEntry(0, Instant.EPOCH.plus((long) (Double.parseDouble(parts[0]) * 1_000_000), ChronoUnit.MICROS), - typeOf(LogLevel.parse(parts[5])), + typeOf(Level.parse(parts[5])), parts[1] + '\t' + parts[3] + '\t' + parts[4] + '\n' + parts[6].replaceAll("\\\\n", "\n") .replaceAll("\\\\t", "\t"))) @@ -103,8 +103,8 @@ public class LogEntry { } public static Type typeOf(Level level) { - return level.intValue() < LogLevel.INFO.intValue() ? Type.debug - : level.intValue() < LogLevel.WARNING.intValue() ? Type.info + return level.intValue() < Level.INFO.intValue() ? Type.debug + : level.intValue() < Level.WARNING.intValue() ? Type.info : level.intValue() < Level.SEVERE.intValue() ? Type.warning : Type.error; } -- cgit v1.2.3