Skip to content

--debug raises a TypeError #20

Open
@dmtucker

Description

@dmtucker

See #19 (comment).

Here is a SSCCE:

>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)
>>> logging.debug('foo', bar='baz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/ifs/home/dtucker/.pyenv/versions/3.6.7/lib/python3.6/logging/__init__.py", line 1912, in debug
    root.debug(msg, *args, **kwargs)
  File "/ifs/home/dtucker/.pyenv/versions/3.6.7/lib/python3.6/logging/__init__.py", line 1296, in debug
    self._log(DEBUG, msg, args, **kwargs)
TypeError: _log() got an unexpected keyword argument 'bar'

We seem to hit that here when --debug is used:

logging.debug('Expect key tag definitions at ', path=defs_path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions