From 7a1cb30058f1f6bf1a5d1f8d4d7ee7869bfc0ca5 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 20 Dec 2023 02:48:27 +0200 Subject: [PATCH 1/2] Disable informant colors for nicer log files --- Cargo.lock | 1 + Cargo.toml | 1 + src/backend/node.rs | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 0aee9724..02454ec7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10607,6 +10607,7 @@ dependencies = [ "sc-client-api", "sc-client-db", "sc-consensus-slots", + "sc-informant", "sc-network", "sc-service", "sc-storage-monitor", diff --git a/Cargo.toml b/Cargo.toml index 5844574b..fc96da05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ relm4-components = { version = "0.7.0-beta.2", git = "https://github.com/Relm4/R sc-client-api = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } sc-client-db = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } sc-consensus-slots = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } +sc-informant = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } sc-network = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } sc-service = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } sc-storage-monitor = { git = "https://github.com/subspace/polkadot-sdk", rev = "c63a8b28a9fd26d42116b0dcef1f2a5cefb9cd1c", default-features = false } diff --git a/src/backend/node.rs b/src/backend/node.rs index 4ac0b7f9..b75b3fb1 100644 --- a/src/backend/node.rs +++ b/src/backend/node.rs @@ -8,6 +8,7 @@ use sc_client_api::client::BlockchainEvents; use sc_client_api::HeaderBackend; use sc_client_db::{DatabaseSource, PruningMode}; use sc_consensus_slots::SlotProportion; +use sc_informant::OutputFormat; use sc_network::config::{Ed25519Secret, NetworkConfiguration, NodeKeyConfig, SyncMode}; use sc_service::config::{KeystoreConfig, OffchainWorkerConfig}; use sc_service::{BasePath, BlocksPruning, Configuration, Role, RpcMethods}; @@ -332,7 +333,9 @@ fn create_consensus_chain_config( announce_block: true, data_path: Default::default(), base_path: BasePath::new(base_path), - informant_output_format: Default::default(), + informant_output_format: OutputFormat { + enable_color: false, + }, // Substrate's default runtime_cache_size: 2, } From 731dba7902a445a1191bf35ff6165694af05df3e Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 20 Dec 2023 02:52:55 +0200 Subject: [PATCH 2/2] Bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 02454ec7..53211b2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10580,7 +10580,7 @@ dependencies = [ [[package]] name = "space-acres" -version = "0.0.8" +version = "0.0.9" dependencies = [ "anyhow", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index fc96da05..207da512 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "space-acres" description = "Space Acres is an opinionated unofficial GUI application for farming on Subspace Network" license = "0BSD" -version = "0.0.8" +version = "0.0.9" authors = ["Nazar Mokrynskyi "] repository = "https://github.com/nazar-pc/space-acres" edition = "2021"