summaryrefslogtreecommitdiffstats
path: root/container-disc
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-24 20:18:48 +0200
committergjoranv <gv@verizonmedia.com>2020-04-25 02:24:38 +0200
commit09b3ac7d50ba91f801a9d7cbd719a3cbf403932c (patch)
tree970178102787c21d4732e358d9c2313eea5ab6ca /container-disc
parentf94cc116fffbf88ac70e603f91b4561ad743174f (diff)
Use java.util.logging.Level in static imports.
Diffstat (limited to 'container-disc')
-rw-r--r--container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java b/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
index d19362ecfb5..e60e8d407cd 100644
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
+++ b/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
@@ -19,7 +19,7 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
-import static com.yahoo.log.LogLevel.DEBUG;
+import static java.util.logging.Level.FINE;
import static java.util.logging.Level.INFO;
import static java.util.logging.Level.SEVERE;
import static java.util.logging.Level.WARNING;
@@ -52,11 +52,11 @@ public class Deconstructor implements ComponentDeconstructor {
}
} else if (component instanceof Provider) {
// TODO Providers should most likely be deconstructed similarly to AbstractComponent
- log.log(DEBUG, () -> "Starting deconstruction of provider " + component);
+ log.log(FINE, () -> "Starting deconstruction of provider " + component);
((Provider<?>) component).deconstruct();
- log.log(DEBUG, () -> "Finished deconstruction of provider " + component);
+ log.log(FINE, () -> "Finished deconstruction of provider " + component);
} else if (component instanceof SharedResource) {
- log.log(DEBUG, () -> "Releasing container reference to resource " + component);
+ log.log(FINE, () -> "Releasing container reference to resource " + component);
// No need to delay release, as jdisc does ref-counting
((SharedResource) component).release();
}
@@ -89,10 +89,10 @@ public class Deconstructor implements ComponentDeconstructor {
@Override
public void run() {
for (var component : components) {
- log.log(DEBUG, () -> "Starting deconstruction of component " + component);
+ log.log(FINE, () -> "Starting deconstruction of component " + component);
try {
component.deconstruct();
- log.log(DEBUG, () -> "Finished deconstructing of component " + component);
+ log.log(FINE, () -> "Finished deconstructing of component " + component);
} catch (Exception | NoClassDefFoundError e) { // May get class not found due to it being already unloaded
log.log(WARNING, "Exception thrown when deconstructing component " + component, e);
} catch (Error e) {