You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2015/09/15 02:12:45 UTC

[jira] [Resolved] (IGNITE-1402) Logging uses root logger in some cases

     [ https://issues.apache.org/jira/browse/IGNITE-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Kulichenko resolved IGNITE-1402.
-----------------------------------------
    Resolution: Fixed

Fixed in ignite-1.4

> Logging uses root logger in some cases
> --------------------------------------
>
>                 Key: IGNITE-1402
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1402
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>            Reporter: Valentin Kulichenko
>            Assignee: Valentin Kulichenko
>            Priority: Blocker
>              Labels: user-request
>             Fix For: ignite-1.4
>
>
> {{GridKernalContext.log()}} method returns root logger which should not be used by any of Ignite classes. This can cause the following scenario:
> # User configures logger with DEBUG level as default and INFO level for {{org.apache.ignite}} package.
> # Ignite class takes logger using {{GridKernalContext.log()}} and checks if debug is enabled. It will get true regardless of the settings for Ignite package.
> There are places in code that uses {{GridKernalContext.log()}} method incorrectly, so it should be removed. We should always use {{GridKernalContext.log(Class<?> cls)}} properly specifying the category.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)