kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a Beta version at the final testing phases.
ISC License
350 stars 105 forks source link

Panic logs should appear both in the standard log and the error log files #445

Closed coderofstuff closed 1 week ago

coderofstuff commented 1 month ago

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:

  1. Run the node: cargo run --bin kaspad
  2. Do anything that causes it to panic
  3. The logs only show up on the console

Expected behavior The panic logs shows up on both log files

Additional context First point of contact: core/src/panic.rs

gvbgduh commented 1 month ago

taking this one

coderofstuff commented 1 week ago

Fixed by #446