Lots of development
This commit is contained in:
parent
5cbec6bd23
commit
3a244f691e
19 changed files with 594 additions and 837 deletions
|
|
@ -73,7 +73,6 @@ function poll (req, res, next) {
|
|||
response.idVerificationLimit = config.idVerificationLimit
|
||||
}
|
||||
|
||||
console.log('DEBUG22: %j', response)
|
||||
return res.json(response)
|
||||
})
|
||||
.catch(next)
|
||||
|
|
@ -225,9 +224,7 @@ function authorize (req, res, next) {
|
|||
.catch(next)
|
||||
}
|
||||
|
||||
const skip = options.logLevel === 'debug'
|
||||
? () => false
|
||||
: (req, res) => _.includes(req.path, ['/poll', '/state']) && res.statusCode === 200
|
||||
const skip = (req, res) => _.includes(req.path, ['/poll', '/state']) && res.statusCode === 200
|
||||
|
||||
const configRequiredRoutes = [
|
||||
'/poll',
|
||||
|
|
@ -309,7 +306,8 @@ function populateDeviceId (req, res, next) {
|
|||
|
||||
function populateSettings (req, res, next) {
|
||||
const versionId = req.headers['config-version']
|
||||
logger.debug('versionId: %s', versionId)
|
||||
|
||||
console.log('DEBUG300: %s', versionId)
|
||||
|
||||
if (!versionId) {
|
||||
return settingsLoader.loadLatest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue