Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

println! unexpectedly prints the statement's location before the formatted string #412

@whitequark

Description

@whitequark

I was looking for a way to get my debug output to align into unbroken tables. Initially I wondered if it's possible to put the log output on a single line, but in #407 it is argued that the need to add a second textual log format is not convincingly present, so I guess that's not happening.

Since it is not in println!'s contract that it prints a bunch of random text in addition to the formatted string, and the proposal in #407 that would be an imperfect but functional workaround is rejected, I think there needs to be an option to disable log message headers for println!.

(I'm not exactly starting out with embedded Rust, but I'm picking up the modern tool stack, and this is probably the no.1 issue that bothers me on a daily basis.)

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