Skip to content
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

Feature Request: Don't print stack trace to Serial on crash #9194

Open
5 tasks done
DRSDavidSoft opened this issue Aug 28, 2024 · 1 comment · May be fixed by #9196
Open
5 tasks done

Feature Request: Don't print stack trace to Serial on crash #9194

DRSDavidSoft opened this issue Aug 28, 2024 · 1 comment · May be fixed by #9196

Comments

@DRSDavidSoft
Copy link
Contributor

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • [N/A] If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP8266
  • Core Version: 3.1.2 (latest)
  • Development Env: VS Code + Microsoft Arduino Extension
  • Operating System: Windows

Settings in IDE

  • Module: Generic ESP8266 Module

Problem Description

Hi there, I'm trying to change the behavior of the postmortem_report() call not to print anything to the Serial upon a crash. The serial port in question is connected to a peripherical and is not used for debugging purposes.

So far, my efforts in #9193 have been unsuccessful. I am unable to override the postmortem_report() call via my code.

This got me thinking, can you possibly please introduce a new flag that would prevent the default function from being defined, or avoid printing to the serial? Currently the custom_crash_callback() callback is called after the postmortem_report() has finished printing to the Serial port.

The addition of this would be awesome.

Thank you for the project!

@esp8266 esp8266 deleted a comment Aug 28, 2024
@DRSDavidSoft
Copy link
Contributor Author

It would be awesome if we could somehow override postmortem_report() completely.

@DRSDavidSoft DRSDavidSoft linked a pull request Aug 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant