You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ib...@apache.org on 2021/08/13 14:52:30 UTC

[ignite-3] branch main updated: IGNITE-15310 fix bug in JavaLoggerFormatter (#281)

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

ibessonov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new ff694ff  IGNITE-15310 fix bug in JavaLoggerFormatter (#281)
ff694ff is described below

commit ff694ff5e70bac830d17aa3235e2ae8db8a5cc02
Author: Mirza Aliev <al...@gmail.com>
AuthorDate: Fri Aug 13 17:52:26 2021 +0300

    IGNITE-15310 fix bug in JavaLoggerFormatter (#281)
---
 .../core/src/main/java/org/apache/ignite/lang/JavaLoggerFormatter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/src/main/java/org/apache/ignite/lang/JavaLoggerFormatter.java b/modules/core/src/main/java/org/apache/ignite/lang/JavaLoggerFormatter.java
index ffd2c9b..9f5ee41 100644
--- a/modules/core/src/main/java/org/apache/ignite/lang/JavaLoggerFormatter.java
+++ b/modules/core/src/main/java/org/apache/ignite/lang/JavaLoggerFormatter.java
@@ -141,6 +141,6 @@ public class JavaLoggerFormatter extends Formatter {
         // for level > SEVERE, return SEVERE and exclude OFF
         int i = Arrays.binarySearch(LEVEL_VALUES, 0, LEVEL_VALUES.length - 2, severity);
 
-        return toLevel(i);
+        return toLevel(LEVEL_VALUES[i >= 0 ? i : (-i - 1)]);
     }
 }