Skip to content

Commit 7210d3e

Browse files
committed
boltz: log webhook
1 parent dc7b759 commit 7210d3e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lwk_boltz/src/reverse.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ impl LightningSession {
5555
compressed: true,
5656
inner: our_keys.public_key(),
5757
};
58+
let webhook_str = format!("{:?}", webhook);
5859

5960
let addrs_sig = sign_address(&claim_address.to_string(), &our_keys)?;
6061
let create_reverse_req = CreateReverseRequest {
@@ -92,7 +93,7 @@ impl LightningSession {
9293
let swap_script =
9394
SwapScript::reverse_from_swap_resp(chain, &reverse_resp, claim_public_key)?;
9495
let swap_id = reverse_resp.id.clone();
95-
log::info!("subscribing to swap: {swap_id}");
96+
log::info!("subscribing to swap: {swap_id} webhook:{webhook_str}");
9697
self.ws.subscribe_swap(&swap_id).await?;
9798
let mut rx = self.ws.updates();
9899

lwk_boltz/src/submarine.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl LightningSession {
3737
) -> Result<PreparePayResponse, Error> {
3838
let chain = self.chain();
3939
let bolt11_invoice_str = bolt11_invoice.to_string();
40+
let webhook_str = format!("{:?}", webhook);
4041

4142
let our_keys = self.derive_next_keypair()?;
4243
let refund_public_key = PublicKey {
@@ -92,7 +93,9 @@ impl LightningSession {
9293
let swap_script =
9394
SwapScript::submarine_from_swap_resp(chain, &create_swap_response, refund_public_key)?;
9495
let swap_id = create_swap_response.id.clone();
95-
log::info!("Created Swap Script id:{swap_id} swap_script:{swap_script:?}");
96+
log::info!(
97+
"Created Swap Script id:{swap_id} swap_script:{swap_script:?} webhook:{webhook_str}"
98+
);
9699

97100
let mut rx = self.ws.updates();
98101
self.ws.subscribe_swap(&swap_id).await?;

0 commit comments

Comments
 (0)