From 0144a55e244d086969b553ae72afd7aebdea995c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Calder=C3=B3n?= Date: Fri, 1 Mar 2024 16:18:33 -0300 Subject: [PATCH] Replace logger.warn() by error() (#479) --- bot/commands.js | 2 +- bot/modules/nostr/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/commands.js b/bot/commands.js index 175eae1a..ebf9d499 100644 --- a/bot/commands.js +++ b/bot/commands.js @@ -137,7 +137,7 @@ const addInvoice = async (ctx, bot, order) => { order.amount * 1000 ); if (!!laRes && !laRes.pr) { - logger.warn( + logger.error( `lightning address ${buyer.lightning_address} not available` ); messages.unavailableLightningAddress( diff --git a/bot/modules/nostr/index.js b/bot/modules/nostr/index.js index d3bad273..3e501ef4 100644 --- a/bot/modules/nostr/index.js +++ b/bot/modules/nostr/index.js @@ -26,7 +26,7 @@ exports.configure = bot => { await publish(event); return event; } catch (err) { - logger.warn(err); + logger.error(err); } }); OrderEvents.onOrderTaken(order => {