Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix the browser node and ensure it doesn't colour the informant output #6457

Merged
merged 10 commits into from
Jun 23, 2020
9 changes: 8 additions & 1 deletion client/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,13 @@ pub trait CliConfiguration: Sized {
Ok(true)
}

/// Get the format for the informant
///
/// By default this enables colour and does not use a prefix.
fn informant_output_format(&self) -> sc_informant::OutputFormat {
cecton marked this conversation as resolved.
Show resolved Hide resolved
Default::default()
}

/// Create a Configuration object from the current object
fn create_configuration<C: SubstrateCli>(
&self,
Expand Down Expand Up @@ -477,7 +484,7 @@ pub trait CliConfiguration: Sized {
announce_block: self.announce_block()?,
role,
base_path: Some(base_path),
informant_output_format: sc_informant::OutputFormat::default(),
informant_output_format: self.informant_output_format(),
})
}

Expand Down
1 change: 1 addition & 0 deletions client/service/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ fn node_config<G: RuntimeGenesis + 'static, E: ChainSpecExtension + Clone + 'sta
max_runtime_instances: 8,
announce_block: true,
base_path: Some(BasePath::new(root)),
informant_output_format: Default::default(),
}
}

Expand Down