Skip to content

LOGURU mode logging doesn't work. #57

@eclectocrat

Description

@eclectocrat

Logs are submitted like so:

logger.debug(
            "Handling RPC request - %s", {"request": message, "channel": self.id}
        )

Loguru doesn't accept this format, maybe at one point it did, but right now my log outputs look like this:

DEBUG    | fastapi_websocket_rpc.rpc_channel:on_response:382 - Handling RPC response - %s

The parameter is not interpolated.

You can add a wrapper to the get_logger interface that will return something that will work, or maybe just remove loguru from supported logging systems 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions