Handle spammy logs for removed l-a-s options
This commit is contained in:
parent
91fc4e7cc2
commit
fb42fc54a0
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ const configManager = require('./config-manager')
|
||||||
const logger = require('./logger')
|
const logger = require('./logger')
|
||||||
const schema = require('../lamassu-schema.json')
|
const schema = require('../lamassu-schema.json')
|
||||||
|
|
||||||
|
const REMOVED_FIELDS = ['crossRefVerificationActive', 'crossRefVerificationThreshold']
|
||||||
|
|
||||||
function allScopes (cryptoScopes, machineScopes) {
|
function allScopes (cryptoScopes, machineScopes) {
|
||||||
const scopes = []
|
const scopes = []
|
||||||
cryptoScopes.forEach(c => {
|
cryptoScopes.forEach(c => {
|
||||||
|
|
@ -128,6 +130,8 @@ function ensureConstraints (config) {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
config.every(fieldInstance => {
|
config.every(fieldInstance => {
|
||||||
const fieldCode = fieldInstance.fieldLocator.code
|
const fieldCode = fieldInstance.fieldLocator.code
|
||||||
|
if (_.includes(fieldCode, REMOVED_FIELDS)) return
|
||||||
|
|
||||||
const field = pickField(fieldCode)
|
const field = pickField(fieldCode)
|
||||||
if (!field) {
|
if (!field) {
|
||||||
logger.warn('No such field: %s, %j', fieldCode, fieldInstance.fieldLocator.fieldScope)
|
logger.warn('No such field: %s, %j', fieldCode, fieldInstance.fieldLocator.fieldScope)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue