Skip to content

Commit

Permalink
chore: default log file to storage_dir_path/ldk_node.log
Browse files Browse the repository at this point in the history
  • Loading branch information
enigbe committed Nov 3, 2024
1 parent 24cf565 commit dc9f840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ fn build_with_store_internal(
fn setup_logger(config: &Config) -> Result<Arc<FilesystemLogger>, BuildError> {
let log_dir = match &config.log_dir_path {
Some(log_dir) => String::from(log_dir),
None => config.storage_dir_path.clone() + "/logs",
None => config.storage_dir_path.clone(),
};

Ok(Arc::new(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn start_stop_reinit() {
node.sync_wallets().unwrap();
assert_eq!(node.list_balances().spendable_onchain_balance_sats, expected_amount.to_sat());

let log_file = format!("{}/logs/ldk_node.log", config.clone().storage_dir_path);
let log_file = format!("{}/ldk_node.log", config.clone().storage_dir_path);
assert!(std::path::Path::new(&log_file).exists());

node.stop().unwrap();
Expand Down

0 comments on commit dc9f840

Please sign in to comment.