message: Add a force-debug option to CLI
diff: @@ -27,6 +27,10 @@ pub enum Cli {
  #[structopt(short, long, env)]
  /// Path to configuration file.
  config: Option<path::PathBuf>,
  +
  + /// Override log-level, forcing debug output.
  + #[structopt(short, long)]
  + debug: bool,
  },
  }
  @@ -58,13 +62,15 @@ impl Cli {
  Ok(())
  }
  - Cli::Validator { config } => {
  + Cli::Validator { config, debug } => {
  // We load the specified config, if any, otherwise use defaults.
  - let cfg = config
  + let mut cfg = config
  .map(config::load_from_file)
  .transpose()?
  .unwrap_or_default();
  -
  + if debug {
  + cfg.log.level = tracing::Level::DEBUG;
  + }
  cfg.log.setup_logging()?;
  reactor::launch::<reactor::validator::Reactor>(cfg).await
  