Skip to content

LogRecords are instantiated with None for args #28

Closed
@ryan-woo

Description

@ryan-woo

Python documentation states that the args for a LogRecord should be a tuple or a dict, seemingly even when there are no args to format in the message. Records created by pyo3-log instead set the args to None.

Records appear to be created here https://github.com/vorner/pyo3-log/blob/main/src/lib.rs#L424.

I am trying to use a handler for LogDNA which fails to emit pyo3-log records because None is not iterable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions