Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-1402

Logging uses root logger in some cases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ignite-1.4
    • Component/s: general
    • Labels:

      Description

      GridKernalContext.log() method returns root logger which should not be used by any of Ignite classes. This can cause the following scenario:

      1. User configures logger with DEBUG level as default and INFO level for org.apache.ignite package.
      2. 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.

        Attachments

          Activity

            People

            • Assignee:
              vkulichenko Valentin Kulichenko
              Reporter:
              vkulichenko Valentin Kulichenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: