Skip to content

tracing-journald: Do not connect socket #1745

Closed
@swsnr

Description

@swsnr

Bug Report

Currently tracing-journald subscribers immediately connect to the systemd journal socket.

I believe this implies that the subscriber will permanently fail if the connection to the socket ever drops, e.g. if journald crashes. I think the subscriber should use an unconnected socket and then use send_to to specify the target socket explicitly for every message. That'd make a subscriber "survive" a journald crash, and it's also what upstream does

I can make a pull request (based on #1744) to change this.

Crates

tracing-journald

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