Skip to content

Commit

Permalink
Improve payment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Oct 18, 2022
1 parent 9dc58f3 commit 57df1fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const Home: React.FC = () => {
);
if (result.status === 'SUCCEEDED') {
const msg = `SUCCESS: Boost of ${amount} sats to ${name}`;
console.warn(msg);
console.warn(msg, result);

newSent[destination] = sent[destination]
? sent[destination].plus(amount)
Expand All @@ -191,7 +191,7 @@ const Home: React.FC = () => {
setSentTotal(total);
} else {
const msg = `FAILURE: Boost of ${amount} sats to ${name}`;
console.warn(msg);
console.warn(msg, result);
}
} catch {
const msg = `FAILURE: Boost of ${amount} sats to ${name}`;
Expand Down Expand Up @@ -247,10 +247,10 @@ const Home: React.FC = () => {
);
if (result.status === 'SUCCEEDED') {
const msg = `SUCCESS: Payment of ${amountToSend} sats to ${o.name}`;
console.warn(msg);
console.warn(msg, result);
} else {
const msg = `FAILURE: Payment of ${amountToSend} sats to ${o.name}`;
console.warn(msg);
console.warn(msg, result);
failure = true;
}
} catch {
Expand Down

0 comments on commit 57df1fe

Please sign in to comment.