mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 13:23:13 +00:00
Create recovery dir for local validator/executor temp runs
This commit is contained in:
parent
e7a66825e9
commit
22e89285ca
@ -146,6 +146,9 @@ impl Executor {
|
||||
let config_path = dir.path().join("executor.yaml");
|
||||
let file = std::fs::File::create(&config_path).unwrap();
|
||||
|
||||
// Ensure recovery directory exists so services that persist state do not fail.
|
||||
let _ = std::fs::create_dir_all(dir.path().join("recovery"));
|
||||
|
||||
if !*IS_DEBUG_TRACING {
|
||||
if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") {
|
||||
let log_dir = PathBuf::from(env_dir);
|
||||
|
||||
@ -173,6 +173,9 @@ impl Validator {
|
||||
let config_path = dir.path().join("validator.yaml");
|
||||
let file = std::fs::File::create(&config_path).unwrap();
|
||||
|
||||
// Ensure recovery directory exists so services that persist state do not fail.
|
||||
let _ = std::fs::create_dir_all(dir.path().join("recovery"));
|
||||
|
||||
if !*IS_DEBUG_TRACING {
|
||||
if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") {
|
||||
let log_dir = PathBuf::from(env_dir);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user