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:38:00 UTC
[jira] [Updated] (ATLAS-4657) Atlas Python client is messing up with logs
[ https://issues.apache.org/jira/browse/ATLAS-4657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Martynov updated ATLAS-4657:
----------------------------------
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]
was:
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
> 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
> Priority: Major
>
> 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)