cleanup debug
This commit is contained in:
parent
938eb9ac97
commit
d9f64fd4d3
2 changed files with 10 additions and 6 deletions
|
|
@ -67,8 +67,6 @@ function poll (req, res) {
|
|||
|
||||
pids[deviceId] = {pid, ts: Date.now()}
|
||||
|
||||
logger.debug('poll request from: %s', deviceId)
|
||||
|
||||
let rates = {}
|
||||
let balances = {}
|
||||
|
||||
|
|
@ -329,7 +327,6 @@ function filterOldRequests (req, res, next) {
|
|||
|
||||
function authorize (req, res, next) {
|
||||
const deviceId = req.connection.getPeerCertificate().fingerprint
|
||||
console.log(deviceId)
|
||||
|
||||
return pairing.isPaired(deviceId)
|
||||
.then(r => {
|
||||
|
|
@ -392,7 +389,6 @@ function init (opts) {
|
|||
localApp.post('/reboot', (req, res) => {
|
||||
const pid = req.body.pid
|
||||
const deviceId = req.body.deviceId
|
||||
console.log('pid: %s, deviceId: %s', pid, deviceId)
|
||||
|
||||
if (!deviceId || !pid) {
|
||||
return res.sendStatus(400)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue