-
Notifications
You must be signed in to change notification settings - Fork 783
KeyError: "Attempt to overwrite 'args' in LogRecord" #271
Copy link
Copy link
Closed
Labels
enhancementImprovement to an already existing featureImprovement to an already existing feature
Description
Expected result:
I am able to use args as keyword to denote argument to string interpolation when using loguru
Actual result:
Opposite of above ;-).In fact it seems that if you try to specify whatever is originally available in Record from logging of python, python will think you are crazy to put such things in record.
Facts
loguur.__version__ = 0.5.0python --version = Python 3.7.6lsb_release -sd = Linux Mint 19.3 Triciacontext = application
Reproduce
git clone https://github.com/kornicameister/axion.git /tmp/axion --depth 1 ; \
cd /tmp/axion ; \
git checkout c9d85e76bd48719aab7edded1d4287a52ecb145e \
command -v tox && tox -e "py37-test" -- -k test_not_empty_signature || echo "need tox" ; \
cd - \
rm -rf /tmp/axion
Root cause
Relevant line that causes issue available here
Alternatively, it might be caused by conftest#caplog here, but this is unlikely given that only one test fails ;-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementImprovement to an already existing featureImprovement to an already existing feature