Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Ignore Callstack above printing location #111

@e-nikolov

Description

@e-nikolov

Is it possible when printing an error to only print the Callstack that is generated from this position onward, but ignore the Callstack that happened prior to the method that prints the error?

For instance if I am using a webserver, such as negroni, it includes a lot of function calls which happen before reaching my code. These calls are still included in the stack trace, and clutter it, but I am not particularly interested in them.

Is there a way to ignore them?

If there isn't at present, maybe something can be done to match the runtime.Callers at the printing location with the stack trace inside the error, and ignore the matching part?

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