mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
fix: logs now actually get printed when using 'swap logs'
This commit is contained in:
parent
a99d9ba7f4
commit
cccbba0db2
@ -663,9 +663,12 @@ impl Request {
|
||||
}
|
||||
Method::Logs { logs_dir, redact, swap_id } => {
|
||||
let dir = logs_dir.unwrap_or(context.config.data_dir.join("logs"));
|
||||
|
||||
let logs = get_logs(dir, swap_id, redact).await?;
|
||||
|
||||
for msg in &logs {
|
||||
println!("{msg}");
|
||||
}
|
||||
|
||||
Ok(json!({ "logs": logs }))
|
||||
}
|
||||
Method::GetRawStates => {
|
||||
|
@ -111,7 +111,6 @@ where
|
||||
let request = Request::new(Method::Logs { logs_dir, redact, swap_id });
|
||||
let context = Context::build(None, None, None, data, is_testnet, debug, json, None).await?;
|
||||
|
||||
println!("here");
|
||||
(context, request)
|
||||
}
|
||||
CliCommand::Config => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user