-
Notifications
You must be signed in to change notification settings - Fork 68
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
@log_call decorator should work with Path properly #508
Comments
That's a good idea yeah. Would you be interested in opening a PR? Basically you'd add a conversion to strings here: https://github.com/itamarst/eliot/blob/master/eliot/json.py#L24 |
I made a PR #511 |
You can write your own JSON serializer easily enough, worst case by copy/pasting the code and tweaking it (it's quite shourt)! You don't have to rely on what's built-in: https://eliot.readthedocs.io/en/stable/outputting/output.html#configuring-logging-output |
So far @log_call fails to propery log Path arguments. As everybody uses pathlib now it causes a lot of headache.
The text was updated successfully, but these errors were encountered: