Skip to content

Commit dc9f840

Browse files
committed
chore: default log file to storage_dir_path/ldk_node.log
1 parent 24cf565 commit dc9f840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ fn build_with_store_internal(
12361236
fn setup_logger(config: &Config) -> Result<Arc<FilesystemLogger>, BuildError> {
12371237
let log_dir = match &config.log_dir_path {
12381238
Some(log_dir) => String::from(log_dir),
1239-
None => config.storage_dir_path.clone() + "/logs",
1239+
None => config.storage_dir_path.clone(),
12401240
};
12411241

12421242
Ok(Arc::new(

tests/integration_tests_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fn start_stop_reinit() {
232232
node.sync_wallets().unwrap();
233233
assert_eq!(node.list_balances().spendable_onchain_balance_sats, expected_amount.to_sat());
234234

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

238238
node.stop().unwrap();

0 commit comments

Comments
 (0)