summaryrefslogtreecommitdiffstats
path: root/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-01-19 19:35:54 +0000
committerArne H Juul <arnej@yahooinc.com>2022-01-20 08:31:23 +0000
commita0cbb172c62ce83058f8741f3947092a0faf1c3d (patch)
treee9765b4ced3a83c11836d5e01405647b9860660f /vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java
parenta237c48e9c71931c567e8cd888467db8ac7d2627 (diff)
deprecate internal details of vespa logging
* the classes deprecated here will be moved into a package that isn't PublicApi for Vespa 8.
Diffstat (limited to 'vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java')
-rw-r--r--vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java b/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java
index 913bcafdd44..3a986ccede3 100644
--- a/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java
+++ b/vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java
@@ -1,6 +1,8 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.log;
+import com.yahoo.log.impl.LogUtils;
+
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
@@ -17,6 +19,7 @@ import static org.junit.Assert.fail;
/**
* @author Bjorn Borud
*/
+@SuppressWarnings("removal")
public class VespaFormatterTestCase {
private String hostname;
@@ -33,8 +36,8 @@ public class VespaFormatterTestCase {
@Before
public void setUp () {
- hostname = Util.getHostName();
- pid = Util.getPID();
+ hostname = LogUtils.getHostName();
+ pid = LogUtils.getPID();
testRecord1 = new LogRecord(Level.INFO, "this is a test");
testRecord1.setInstant(Instant.ofEpochMilli(1098709021843L));