-
Notifications
You must be signed in to change notification settings - Fork 711
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
Remove compatibility layer in tracing #4535
Conversation
A question about this changes, is it still possible to filter the logs with RUST_LOG standard log variable in this PR ? |
I'll check this before merging IMHO, we should work on an easy way to enable and disable dependencies logs inside Massa. I did this with @modship to debug an issue in jsonrpsee. |
@AurelienFT could you test the behavior on main branch without this changes ? I get a weird result, I would like to get a confirmation. |
When launching the node, we override the default value that could be in the env variable with our config.toml but in case of the test for example I use this standard variable ( massa/massa-test-framework/src/lib.rs Line 36 in 5f56515
|
@AurelienFT can you confirm that It's working as expected in main branch ? (launch in debug with sandbox) It's cool to choose, if we could inject a list of logger to enable with an env variable, It'll be awesome |
I just answered you above. The behaviour on the node will work as we are not using the env variable but a config file. In the tests it's not the case. I just want to be sure that your changes doesn't prevents us to see the logs in the tests. |
@AurelienFT after testing on |
And on this branch it works also? |
bc7d554
to
1a0c597
Compare
47a2945
to
dd92b06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that RUST_LOG
var env is taken into account both with tracing::
and tracing::log::
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## test_27_6_wip #4535 +/- ##
==============================================
Coverage 71.78% 71.78%
==============================================
Files 291 291
Lines 51642 51642
==============================================
Hits 37069 37069
Misses 14573 14573 ☔ View full report in Codecov by Sentry. |
* Update addresses and public keys * Add more info to double staking protection's panic message * fmt * update version and genesis * Update version and CI * Update Cargo.lock * add community charter * Add serde json tests (#4579) * chore: typo fix (#4589) * Update to wasmer 4.2.4 (#4581) Co-authored-by: sydhds <[email protected]> * typo fix * typo fix * typo fix * typo fix * typo fix --------- Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> * ci: add checksum + tested with ACT (#4590) * Upgrade-to-latest-toolchain (#4585) Co-authored-by: Leo-Besancon <[email protected]> * Update massa-sc-runtime Signed-off-by: Jean-François <[email protected]> * Cargo update * Remove compatibility layer in tracing (#4535) * Add deferred_credits initial file for test * Update Genesis and CI * Push back Genesis * Same --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Jean-François <[email protected]>
* Update addresses and public keys * Add more info to double staking protection's panic message * fmt * update version and genesis * Update version and CI * Update Cargo.lock * add community charter * Add serde json tests (#4579) * chore: typo fix (#4589) * Update to wasmer 4.2.4 (#4581) Co-authored-by: sydhds <[email protected]> * typo fix * typo fix * typo fix * typo fix * typo fix --------- Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> * ci: add checksum + tested with ACT (#4590) * Upgrade-to-latest-toolchain (#4585) Co-authored-by: Leo-Besancon <[email protected]> * Update massa-sc-runtime Signed-off-by: Jean-François <[email protected]> * Cargo update * Remove compatibility layer in tracing (#4535) * Add deferred_credits initial file for test * Update Genesis and CI * Push back Genesis * Same --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Jean-François <[email protected]>
* Update addresses and public keys * Add more info to double staking protection's panic message * fmt * update version and genesis * Update version and CI * Update Cargo.lock * add community charter * Add serde json tests (#4579) * chore: typo fix (#4589) * Update to wasmer 4.2.4 (#4581) Co-authored-by: sydhds <[email protected]> * typo fix * typo fix * typo fix * typo fix * typo fix --------- Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> * ci: add checksum + tested with ACT (#4590) * Upgrade-to-latest-toolchain (#4585) Co-authored-by: Leo-Besancon <[email protected]> * Update massa-sc-runtime Signed-off-by: Jean-François <[email protected]> * Cargo update * Remove compatibility layer in tracing (#4535) * Add deferred_credits initial file for test * Update Genesis and CI * Push back Genesis * Same --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Jean-François <[email protected]>
* Update addresses and public keys * Add more info to double staking protection's panic message * fmt * update version and genesis * Update version and CI * Update Cargo.lock * add community charter * Add serde json tests (#4579) * chore: typo fix (#4589) * Update to wasmer 4.2.4 (#4581) Co-authored-by: sydhds <[email protected]> * typo fix * typo fix * typo fix * typo fix * typo fix --------- Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> * ci: add checksum + tested with ACT (#4590) * Upgrade-to-latest-toolchain (#4585) Co-authored-by: Leo-Besancon <[email protected]> * Update massa-sc-runtime Signed-off-by: Jean-François <[email protected]> * Cargo update * Remove compatibility layer in tracing (#4535) * Add deferred_credits initial file for test * Update Genesis and CI * Push back Genesis * Same --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Jean-François <[email protected]>
* Add initial chain id impl * Add chain id to jsonrpc, grpc public & grpc private api * Add massa-client features sandbox * Add chain id SC unit test * Fix unit test + add dummy gas costs * Update massa-proto-rs dependency * Update massa-sc-runtime dependency * Add unit test allowing easy update of massa docs * Use chain id through config instead of constants directly * Use chain id everywhere (round 1) (#4594) * Use chain id everywhere (round 1) * Use chain id in massa client --------- Co-authored-by: sydhds <[email protected]> * Remove confusing chain id * Fix some unit tests * Test 27 6 wip (#4582) * Update addresses and public keys * Add more info to double staking protection's panic message * fmt * update version and genesis * Update version and CI * Update Cargo.lock * add community charter * Add serde json tests (#4579) * chore: typo fix (#4589) * Update to wasmer 4.2.4 (#4581) Co-authored-by: sydhds <[email protected]> * typo fix * typo fix * typo fix * typo fix * typo fix --------- Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> * ci: add checksum + tested with ACT (#4590) * Upgrade-to-latest-toolchain (#4585) Co-authored-by: Leo-Besancon <[email protected]> * Update massa-sc-runtime Signed-off-by: Jean-François <[email protected]> * Cargo update * Remove compatibility layer in tracing (#4535) * Add deferred_credits initial file for test * Update Genesis and CI * Push back Genesis * Same --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Sydhds <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Jean-François <[email protected]> * Add initial chain id impl * Use chain id everywhere (round 1) (#4594) * Use chain id everywhere (round 1) * Use chain id in massa client --------- Co-authored-by: sydhds <[email protected]> * Fix unit tests (final round) * Minor fix * Revert some nasty insert from bad rebase * Auto gen chain id from VERSION * Cargo clippy && fmt && doc pass * Update massa-sc-runtime dependency --------- Signed-off-by: Jean-François <[email protected]> Co-authored-by: sydhds <[email protected]> Co-authored-by: Leo-Besancon <[email protected]> Co-authored-by: Damir Vodenicarevic <[email protected]> Co-authored-by: Moncef AOUDIA <[email protected]> Co-authored-by: Ursulafe <[email protected]> Co-authored-by: Jean-François <[email protected]>
resync_check
flagcloses #4478