Skip to content

May Return Absolute File Paths in Logs Under Certain Conditions? #649

Closed
@Dynasty-CS

Description

@Dynasty-CS

c9e5e13
While using the #[track_caller] attribute with the following function:

#[track_caller]
pub fn loc() -> &'static Location<'static> {
Location::caller()
}

it seems that in some cases, the log outputs might include absolute file paths instead of relative paths.

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