Skip to content

Commit

Permalink
added json stringify log for error message cause otherwise we just ge…
Browse files Browse the repository at this point in the history
…t [object] [object]
  • Loading branch information
kevkevinpal committed Aug 3, 2023
1 parent 28ae0f8 commit 5e5b68a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ export const performKeysendMessage = async ({
if (success) success(r)
} catch (e) {
sphinxLogger.info(
`KEYSEND MESSAGE ERROR to ${destination_key} ${e} ${opts}`,
`KEYSEND MESSAGE ERROR to ${destination_key} ${e} ${JSON.stringify(
opts
)}`,
logging.Network
)
if (failure) failure(e)
Expand Down

0 comments on commit 5e5b68a

Please sign in to comment.