-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic logs should appear both in the standard log and the error log files #445
Labels
good first issue
Good for newcomers
Comments
taking this one |
gvbgduh
added a commit
to gvbgduh/rusty-kaspa
that referenced
this issue
Apr 4, 2024
gvbgduh
added a commit
to gvbgduh/rusty-kaspa
that referenced
this issue
Apr 4, 2024
gvbgduh
added a commit
to gvbgduh/rusty-kaspa
that referenced
this issue
May 1, 2024
michaelsutton
pushed a commit
that referenced
this issue
May 1, 2024
* Write panic errors to logs (#445) * Remove the comment as it doesn't need to be addressed Reason: Waiting here will block the thread, and as the thread is locked and we wait for the logger system to be initiated that would wait for the thread to be released itself, making the waiting pointless * Add column to the log message for the panic error * Move panic setup after the logger init in all places * Add the thread name to the panic error * default hook invoke position + minor style changes
Fixed by #446 |
smartgoo
pushed a commit
to smartgoo/rusty-kaspa
that referenced
this issue
Jun 18, 2024
* Write panic errors to logs (kaspanet#445) * Remove the comment as it doesn't need to be addressed Reason: Waiting here will block the thread, and as the thread is locked and we wait for the logger system to be initiated that would wait for the thread to be released itself, making the waiting pointless * Add column to the log message for the panic error * Move panic setup after the logger init in all places * Add the thread name to the panic error * default hook invoke position + minor style changes
D-Stacks
pushed a commit
to D-Stacks/rusty-kaspa
that referenced
this issue
Jul 12, 2024
* Write panic errors to logs (kaspanet#445) * Remove the comment as it doesn't need to be addressed Reason: Waiting here will block the thread, and as the thread is locked and we wait for the logger system to be initiated that would wait for the thread to be released itself, making the waiting pointless * Add column to the log message for the panic error * Move panic setup after the logger init in all places * Add the thread name to the panic error * default hook invoke position + minor style changes
D-Stacks
pushed a commit
to D-Stacks/rusty-kaspa
that referenced
this issue
Jul 17, 2024
* Write panic errors to logs (kaspanet#445) * Remove the comment as it doesn't need to be addressed Reason: Waiting here will block the thread, and as the thread is locked and we wait for the logger system to be initiated that would wait for the thread to be released itself, making the waiting pointless * Add column to the log message for the panic error * Move panic setup after the logger init in all places * Add the thread name to the panic error * default hook invoke position + minor style changes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Currently, panic logs only appear in the console and not in log files (both error and standard log file). It should appear in both error logs and the standard logs file.
To Reproduce
Steps to reproduce the behavior:
cargo run --bin kaspad
Expected behavior
The panic logs shows up on both log files
Additional context
First point of contact:
core/src/panic.rs
The text was updated successfully, but these errors were encountered: