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

#19 Pass positional arguments down to stdlib #23

Closed
wants to merge 1 commit into from

Conversation

gcbirzan
Copy link
Contributor

Apparently, there's an error checking merge status :)

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling dde8347 on gcbirzan:issue-19-fix into 59ed7af on hynek:master.

@hynek
Copy link
Owner

hynek commented Jun 9, 2014

poke :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.37%) when pulling 1493856 on gcbirzan:issue-19-fix into 08cf440 on hynek:master.

@hynek
Copy link
Owner

hynek commented Jun 15, 2014

Thanks!

Could you add docstrings to the tests in the style of https://plus.google.com/+JonathanLange/posts/YA3ThKWhSAj ? I know the original tests of structlog didn’t do that but that was also my way to enlightenment why one should do it. :)

@@ -183,6 +184,7 @@ def _proxy_to_logger(self, method_name, event=None, **event_kw):
"""
try:
args, kw = self._process_event(method_name, event, event_kw)
args = args[:] + event_args
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why you copy args? Why not just args += event_args?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m also a bit confused. There’s the addition of an formatter for stdlib strings but still the args won’t get passed into the processor chain but passed into the wrapped method instead? Am I missing something?

ISTM that there’s also no test for this behavior. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually old code, was needed my previous implementation and I forgot to remove it.

@lakshmi-kannan
Copy link
Contributor

@hynek @gcbirzan Could you guys move this PR forward? I was in the process of writing something like this inheriting from BoundLoggerBase and then stumbled upon this PR :). I think this would be immensely helpful.

@hynek
Copy link
Owner

hynek commented Jul 23, 2014

Would you mind helping out? :) @gcbirzan seems rather busy and my own stdlib logging expertise is rather limited. :(

@lakshmi-kannan
Copy link
Contributor

@hynek I can give it a shot, yes.

@hynek
Copy link
Owner

hynek commented Jul 23, 2014

Amazing!

@hynek
Copy link
Owner

hynek commented Jan 15, 2015

Closed via #34.

@hynek hynek closed this Jan 15, 2015
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

Successfully merging this pull request may close these issues.

4 participants