Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--debug raises a TypeError #20

Open
dmtucker opened this issue Feb 7, 2019 · 0 comments
Open

--debug raises a TypeError #20

dmtucker opened this issue Feb 7, 2019 · 0 comments

Comments

@dmtucker
Copy link

dmtucker commented Feb 7, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant