From 57df1fe2f69ae14599d5acc0d6c49169bdef015f Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Tue, 18 Oct 2022 00:02:11 -0400 Subject: [PATCH] Improve payment logging --- src/pages/Home.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index a7e1880..0da0796 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -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) @@ -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}`; @@ -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 {