Skip to content

Commit

Permalink
debug: added logs to save lsat
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Jan 12, 2024
1 parent 51582a7 commit ccd898b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/src/controllers/lsats.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/controllers/lsats.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/controllers/lsats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export async function saveLsat(
}

try {
console.log('We are trying to save LSAT, means there was a database error')
lsat.setPreimage(preimage)
await models.Lsat.create({
macaroon,
Expand All @@ -170,6 +171,7 @@ export async function saveLsat(

return success(res, { lsat: lsat.toToken() })
} catch (e) {
sphinxLogger.error(`Tobi logging error: ${JSON.stringify(e)}`)
return failure(res, `failed to save lsat: ${e.message || e}`)
}
}
Expand Down

0 comments on commit ccd898b

Please sign in to comment.