From e295aa67d50d488cc39693d512bd231308ee085e Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sun, 16 Jun 2019 10:59:11 +0100 Subject: [PATCH] proper log statement --- .../src/main/groovy/com/muwire/core/connection/Endpoint.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy b/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy index 5e13ff5c..1e212564 100644 --- a/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy +++ b/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy @@ -1,6 +1,7 @@ package com.muwire.core.connection import java.util.concurrent.atomic.AtomicBoolean +import java.util.logging.Level import groovy.util.logging.Log import net.i2p.data.Destination @@ -24,7 +25,7 @@ class Endpoint implements Closeable { @Override public void close() { if (!closed.compareAndSet(false, true)) { - log.warning("Close loop detected for ${destination.toBase32()}", new Exception()) + log.log(Level.WARNING,"Close loop detected for ${destination.toBase32()}", new Exception()) return } if (inputStream != null) {