You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Maxim Martynov (Jira)" <ji...@apache.org> on 2022/08/17 11:30:00 UTC
[jira] [Created] (ATLAS-4657) Atlas Python client is messing up with logs
Maxim Martynov created ATLAS-4657:
-------------------------------------
Summary: Atlas Python client is messing up with logs
Key: ATLAS-4657
URL: https://issues.apache.org/jira/browse/ATLAS-4657
Project: Atlas
Issue Type: Bug
Components: atlas-intg
Affects Versions: 2.1.0
Reporter: Maxim Martynov
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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)