Skip to content

Commit bfe5ff0

Browse files
committed
chore: census logs key index, refund address and completion time
1 parent 9c0fd57 commit bfe5ff0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/core/swaps/data/services/swap_watcher.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,17 @@ class SwapWatcherService {
7474
ChainSwap(:final refundTxid) => refundTxid,
7575
_ => null,
7676
};
77+
final refundAddr = switch (s) {
78+
LnSendSwap(:final refundAddress) => refundAddress,
79+
ChainSwap(:final refundAddress) => refundAddress,
80+
_ => null,
81+
};
7782
log.info(
7883
'[SwapCensus] ${s.id} ${s.type.name} ${s.status.name}'
79-
' send=${send ?? '-'} recv=${recv ?? '-'} refund=${refund ?? '-'}',
84+
' keyIndex=${s.keyIndex}'
85+
' send=${send ?? '-'} recv=${recv ?? '-'} refund=${refund ?? '-'}'
86+
' refundAddr=${refundAddr ?? '-'}'
87+
' completedAt=${s.completionTime?.toIso8601String() ?? '-'}',
8088
);
8189
}
8290
} catch (e) {

0 commit comments

Comments
 (0)