From ed7ed5ffc4627344ef24597946dc2b1f09a57697 Mon Sep 17 00:00:00 2001 From: gjoranv Date: Fri, 21 Jan 2022 23:40:20 +0100 Subject: Deprecate c.y.log.LogLevel. - Will remain PublicApi until Vespa 9 --- .../com/yahoo/vespa/hosted/controller/api/integration/LogEntry.java | 2 ++ 1 file changed, 2 insertions(+) (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 c74133838cf..73f83a9b6e5 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 @@ -57,6 +57,7 @@ public class LogEntry { return message; } + @SuppressWarnings("deprecation") public static List parseVespaLog(InputStream log, Instant from) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(log, UTF_8))) { return reader.lines() @@ -104,6 +105,7 @@ public class LogEntry { return Objects.hash(id, at, type, message); } + @SuppressWarnings("deprecation") public static Type typeOf(Level level) { return level.intValue() < Level.INFO.intValue() || level.intValue() == LogLevel.IntValEVENT ? Type.debug : level.intValue() < Level.WARNING.intValue() ? Type.info -- cgit v1.2.3