From 8bde6220e47382afd073d796680636beb2b4f20f Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Wed, 11 Nov 2020 00:37:14 +0300 Subject: [PATCH] [java] Allowing a subclass to use its own logger --- .../org/openqa/selenium/grid/session/remote/RemoteSession.java | 2 +- .../openqa/selenium/grid/session/remote/ServicedSession.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/java/server/src/org/openqa/selenium/grid/session/remote/RemoteSession.java b/java/server/src/org/openqa/selenium/grid/session/remote/RemoteSession.java index f793895324d61..64866228ef647 100644 --- a/java/server/src/org/openqa/selenium/grid/session/remote/RemoteSession.java +++ b/java/server/src/org/openqa/selenium/grid/session/remote/RemoteSession.java @@ -59,7 +59,7 @@ */ public abstract class RemoteSession implements ActiveSession { - protected final static Logger LOG = Logger.getLogger(ActiveSession.class.getName()); + private static final Logger LOG = Logger.getLogger(ActiveSession.class.getName()); private final SessionId id; private final Dialect downstream; diff --git a/java/server/src/org/openqa/selenium/grid/session/remote/ServicedSession.java b/java/server/src/org/openqa/selenium/grid/session/remote/ServicedSession.java index 9883ea208489f..8119537942a2d 100644 --- a/java/server/src/org/openqa/selenium/grid/session/remote/ServicedSession.java +++ b/java/server/src/org/openqa/selenium/grid/session/remote/ServicedSession.java @@ -46,6 +46,7 @@ import java.util.function.Function; import java.util.function.Predicate; import java.util.logging.Level; +import java.util.logging.Logger; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; @@ -53,6 +54,8 @@ @ManagedService public class ServicedSession extends RemoteSession { + private static final Logger LOG = Logger.getLogger(ServicedSession.class.getName()); + private final DriverService service; public ServicedSession(