Skip to content

Logger doesn't support stacklevel #198

@SabinaRachocka

Description

@SabinaRachocka

Describe the bug
The RPLogger doesn't accept stacklevel as an argument, which results in an error.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Use any library that logs internally using stacklevel as an argument.
    Ex. sqlalchemy 1.4.44

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
> E TypeError: _log() got an unexpected keyword argument 'stacklevel' args = () kwargs = {'stacklevel': 3} level = 20 msg = 'select pg_catalog.version()' selected_level = 20 self = <sqlalchemy.log.InstanceLogger object at 0x7faff18d6700> venv/lib/python3.9/site-packages/sqlalchemy/log.py:179: TypeError

Package versions
Debian GNU/Linux 11 (bullseye)
Python 3.9.15
pytest==7.2.0
pytest-reportportal==5.0.10
reportportal-client==5.2.5

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