Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4657

Atlas Python client is messing up with logs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 3.0.0, 2.4.0
    • atlas-intg
    • None

    Description

      After importing atlas-client Python library, I got all my loggers disabled.

      This is caused by this code block:

      https://github.com/apache/atlas/blob/c1daaa44c3833be31c006753a2cf2f6f2e476cdc/intg/src/main/python/apache_atlas/__init__.py

      Unlike applications, libraries should not setup logging by themselves. It should be done explicitly by code which uses this client. Or there should be a function to set up desired logging, which also should be explicitly called by application or user.

       

      I've created a pull request to fix this issue:

      https://github.com/apache/atlas/pull/157

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dolfinus Maxim Martynov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h