mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 06:31:09 +00:00
* Add log_rotation_opt * Update Cargo lock * Use SubstrateCli's log-directory instead of re-defining it
This commit is contained in:
Generated
+158
-138
File diff suppressed because it is too large
Load Diff
@@ -84,11 +84,9 @@ pub struct RunCmd {
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub struct Cli {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(subcommand)]
|
||||
pub subcommand: Option<Subcommand>,
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(flatten)]
|
||||
pub run: RunCmd,
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ use log::info;
|
||||
use service::{IdentifyVariant, self};
|
||||
#[cfg(feature = "service-rewr")]
|
||||
use service_new::{IdentifyVariant, self as service};
|
||||
use sc_cli::{SubstrateCli, Result, RuntimeVersion, Role};
|
||||
use sc_cli::{CliConfiguration, SubstrateCli, Result, RuntimeVersion, Role};
|
||||
use crate::cli::{Cli, Subcommand};
|
||||
|
||||
fn get_exec_name() -> Option<String> {
|
||||
@@ -198,7 +198,7 @@ pub fn run() -> Result<()> {
|
||||
}
|
||||
},
|
||||
Some(Subcommand::ValidationWorker(cmd)) => {
|
||||
sc_cli::init_logger("");
|
||||
sc_cli::init_logger("", cli.run.base.log_rotation_opt()?)?;
|
||||
|
||||
if cfg!(feature = "browser") {
|
||||
Err(sc_cli::Error::Input("Cannot run validation worker in browser".into()))
|
||||
|
||||
Reference in New Issue
Block a user