-
Notifications
You must be signed in to change notification settings - Fork 42
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
[peerswap-plugin] Crash logging #6
Comments
Decker: Yes, in peerswap: close the stderr FD, create a fd pipe to capture stderr internally and wrap it in JSON log notifications before re-emitting to stdout, so lightningd can capture and process it as normal log events
Decker: No, capturing one's own output is relatively routine, and the python plugin infra does it by default for example, maybe that can serve as inspiration
Decker: Because that's our emergency comm system, this way plugins and subdaemons can still communicate with the outside world even though lightningd might be blocked |
Does Go have cheap threads/greenthreads? If so, you could open a A complication is that outputting to A final alternative, you could use two processes instead to isolate crashes of the "main" program from the log translator. The log translator is the parent process, the "main" program is the child process. Set up two |
I am almost certain that this is done by a8119ad |
On Crash / Panic peerswap does not print to the cln logs.
The text was updated successfully, but these errors were encountered: