add debug
This commit is contained in:
parent
5caa110aab
commit
6cfe2259cc
1 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ function poll (req, res) {
|
|||
|
||||
pids[fingerprint] = {pid: pid, ts: Date.now()}
|
||||
|
||||
logger.debug('poll request from: %s', fingerprint)
|
||||
// logger.debug('poll request from: %s', fingerprint)
|
||||
|
||||
var rates
|
||||
var balances
|
||||
|
|
@ -266,8 +266,11 @@ function registerRedeem (req, res) {
|
|||
}
|
||||
|
||||
function waitForDispense (req, res) {
|
||||
logger.debug('waitForDispense')
|
||||
return plugins.fetchTx(session(req))
|
||||
.then(tx => {
|
||||
logger.debug('tx fetched')
|
||||
logger.debug(tx)
|
||||
if (!tx) return res.sendStatus(404)
|
||||
if (tx.status === req.query.status) return res.sendStatus(304)
|
||||
res.json({tx: tx})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue