-
Notifications
You must be signed in to change notification settings - Fork 823
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
Improve XCM Debugging by Capturing Logs in Unit Tests #7594
base: master
Are you sure you want to change the base?
Conversation
All GitHub workflows were cancelled due to failure one of the required jobs. |
Currently, there is no straightforward way to verify if log messages are correctly output during unit tests. I initially explored using For Given this, I've implemented a custom log capture mechanism within |
if this is simple, then sure, it's nice to have, otherwise I don't think we really need to verify this in tests - we have many devs acting as canaries 😆 |
Description
This PR introduces a lightweight log-capturing mechanism for XCM unit tests, making it easier to troubleshoot failures when needed. It partially addresses #6119 and #6125 by providing an optional way to verify log outputs in tests.
TODOs
Review Notes:
sp_tracing::init_for_tests()
, when manual debugging is sufficient.