This is an automated email from the ASF dual-hosted git repository.

sk0x50 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new f9105d0  IGNITE-13278 Added the forgotten log level check. Fixes #8066
f9105d0 is described below

commit f9105d08ba57d5822524a39cf70d4e7aca05d7bf
Author: Stanilovsky Evgeny <stanilov...@gmail.com>
AuthorDate: Wed Jul 22 13:24:49 2020 +0300

    IGNITE-13278 Added the forgotten log level check. Fixes #8066
    
    Signed-off-by: Slava Koptilin <slava.kopti...@gmail.com>
---
 .../ignite/internal/processors/cluster/GridClusterStateProcessor.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cluster/GridClusterStateProcessor.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cluster/GridClusterStateProcessor.java
index 888ba7d..6ba6061 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cluster/GridClusterStateProcessor.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cluster/GridClusterStateProcessor.java
@@ -576,7 +576,8 @@ public class GridClusterStateProcessor extends 
GridProcessorAdapter implements I
             if (discoClusterState.lastState() == ACTIVE_READ_ONLY || 
globalState.state() == ACTIVE_READ_ONLY)
                 ctx.cache().context().readOnlyMode(globalState.state() == 
ACTIVE_READ_ONLY);
 
-            log.info("Cluster state was changed from " + 
discoClusterState.lastState() + " to " + globalState.state());
+            if (log.isInfoEnabled())
+                log.info("Cluster state was changed from " + 
discoClusterState.lastState() + " to " + globalState.state());
 
             if (!globalState.state().active())
                 ctx.cache().context().readOnlyMode(false);

Reply via email to