Improve remote externalities logging (#7021)
Changes: - Automatically detect if current env is tty. If not disable the spinner logging. - Add `Result` type. - Format log style. Originally reported from: - https://github.com/hack-ink/polkadot-runtime-releaser/blob/4811d2b419649a73edd5bd1f748a858b846eb139/action/try-runtime/action.yml#L75-L91 - https://github.com/hack-ink/polkadot-runtime-releaser-workshop/pull/3#issuecomment-2563883943 Closes #7010. --- Polkadot address: 156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y --------- Signed-off-by:Xavier Lau <x@acg.box> Co-authored-by: command-bot <> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent
47294570
Showing
- prdoc/pr_7021.prdoc 8 additions, 0 deletionsprdoc/pr_7021.prdoc
- substrate/utils/frame/remote-externalities/src/lib.rs 111 additions, 108 deletionssubstrate/utils/frame/remote-externalities/src/lib.rs
- substrate/utils/frame/remote-externalities/src/logging.rs 86 additions, 0 deletionssubstrate/utils/frame/remote-externalities/src/logging.rs
Please register or sign in to comment