summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-25 01:42:52 +0200
committergjoranv <gv@verizonmedia.com>2020-04-25 02:24:39 +0200
commit0ded26c5c4fddcb22bf7566f2c731533e4a7ddcb (patch)
tree68cc81403365c5a0cae05496d19e8fa22e769260 /controller-api
parentc0c9169385861c23ba640212ebb1b3beecd555d5 (diff)
Use Vespa LogLevel where appropriate.
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java5
1 files changed, 3 insertions, 2 deletions
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")))