Skip to content

Logging issues while using nixl agents #972

@vshawrh

Description

@vshawrh

Hi Team,
Due to https://github.com/ai-dynamo/nixl/blob/main/src/api/python/_api.py#L26
We are unable to use loggers in our local code.
As the the nixl logger supersedes while using nixl agent
The logger.info doesn't work

i.e.
def test_nixl_api(self):
"""Test that nixl API can be imported."""
test_name = "test_nixl_api"
try:
from nixl._api import nixl_agent, nixl_agent_config
logger.info("nixl._api imported successfully")
log_test_result(test_name, 'passed', f"NIXL API imported successfully on {DEVICE}")
assert True
except Exception as e:
log_test_result(test_name, 'failed', f"NIXL API not available: {e}")
pytest.fail(f"NIXL API not available: {e}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions