From 0ded26c5c4fddcb22bf7566f2c731533e4a7ddcb Mon Sep 17 00:00:00 2001 From: gjoranv Date: Sat, 25 Apr 2020 01:42:52 +0200 Subject: Use Vespa LogLevel where appropriate. --- .../com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java | 5 +++-- 1 file changed, 3 insertions(+), 2 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 49813474315..02c6972b543 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 @@ -1,6 +1,8 @@ // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.api.integration; +import com.yahoo.log.LogLevel; + import java.util.logging.Level; import java.io.BufferedReader; @@ -12,7 +14,6 @@ import java.time.Instant; import java.time.temporal.ChronoUnit; import java.util.List; import java.util.Objects; -import java.util.logging.Level; import java.util.stream.Collectors; import static java.nio.charset.StandardCharsets.UTF_8; @@ -63,7 +64,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(Level.parse(parts[5])), + typeOf(LogLevel.parse(parts[5])), parts[1] + '\t' + parts[3] + '\t' + parts[4] + '\n' + parts[6].replaceAll("\\\\n", "\n") .replaceAll("\\\\t", "\t"))) -- cgit v1.2.3