parity: print correct keys path on startup (#9501)
This commit is contained in:
parent
e1f333021f
commit
2177a0179e
@ -185,7 +185,7 @@ fn execute_light_impl(cmd: RunCmd, logger: Arc<RotatingLogger>) -> Result<Runnin
|
|||||||
cmd.dirs.create_dirs(cmd.acc_conf.unlocked_accounts.len() == 0, cmd.secretstore_conf.enabled)?;
|
cmd.dirs.create_dirs(cmd.acc_conf.unlocked_accounts.len() == 0, cmd.secretstore_conf.enabled)?;
|
||||||
|
|
||||||
//print out running parity environment
|
//print out running parity environment
|
||||||
print_running_environment(&spec.name, &cmd.dirs, &db_dirs);
|
print_running_environment(&spec.data_dir, &cmd.dirs, &db_dirs);
|
||||||
|
|
||||||
info!("Running in experimental {} mode.", Colour::Blue.bold().paint("Light Client"));
|
info!("Running in experimental {} mode.", Colour::Blue.bold().paint("Light Client"));
|
||||||
|
|
||||||
@ -402,7 +402,7 @@ fn execute_impl<Cr, Rr>(cmd: RunCmd, logger: Arc<RotatingLogger>, on_client_rq:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//print out running parity environment
|
//print out running parity environment
|
||||||
print_running_environment(&spec.name, &cmd.dirs, &db_dirs);
|
print_running_environment(&spec.data_dir, &cmd.dirs, &db_dirs);
|
||||||
|
|
||||||
// display info about used pruning algorithm
|
// display info about used pruning algorithm
|
||||||
info!("State DB configuration: {}{}{}",
|
info!("State DB configuration: {}{}{}",
|
||||||
@ -926,9 +926,9 @@ fn daemonize(_pid_file: String) -> Result<(), String> {
|
|||||||
Err("daemon is no supported on windows".into())
|
Err("daemon is no supported on windows".into())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_running_environment(spec_name: &String, dirs: &Directories, db_dirs: &DatabaseDirectories) {
|
fn print_running_environment(data_dir: &str, dirs: &Directories, db_dirs: &DatabaseDirectories) {
|
||||||
info!("Starting {}", Colour::White.bold().paint(version()));
|
info!("Starting {}", Colour::White.bold().paint(version()));
|
||||||
info!("Keys path {}", Colour::White.bold().paint(dirs.keys_path(spec_name).to_string_lossy().into_owned()));
|
info!("Keys path {}", Colour::White.bold().paint(dirs.keys_path(data_dir).to_string_lossy().into_owned()));
|
||||||
info!("DB path {}", Colour::White.bold().paint(db_dirs.db_root_path().to_string_lossy().into_owned()));
|
info!("DB path {}", Colour::White.bold().paint(db_dirs.db_root_path().to_string_lossy().into_owned()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,9 +131,9 @@ impl Directories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get the keys path
|
/// Get the keys path
|
||||||
pub fn keys_path(&self, spec_name: &str) -> PathBuf {
|
pub fn keys_path(&self, data_dir: &str) -> PathBuf {
|
||||||
let mut dir = PathBuf::from(&self.keys);
|
let mut dir = PathBuf::from(&self.keys);
|
||||||
dir.push(spec_name);
|
dir.push(data_dir);
|
||||||
dir
|
dir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user