You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, some logging calls would stringify a JSON structure
before writing it to the log. This is incorrect, and makes for
some awkward logs when reaching. Instead, if you include a message
field in your struct, then it will get printed while the other
fields are printed as structured information in the log.
So this updates logging calls throughout the application to
do the correct thing.
Signed-off-by: Andrew Lilley Brinker <abrinker@mitre.org>
logger.error(JSON.stringify({message: 'The cve id priority and sequential blocks are full for year '+year+'. No more priority or sequential ids can be reserved at this time.'}))
581
+
logger.error({message: 'The cve id priority and sequential blocks are full for year '+year+'. No more priority or sequential ids can be reserved at this time.'})
582
582
}else{
583
-
logger.error(JSON.stringify({message: 'The cve id sequential block is full for year '+year+'. No more sequential ids can be reserved at this time.'}))
583
+
logger.error({message: 'The cve id sequential block is full for year '+year+'. No more sequential ids can be reserved at this time.'})
logger.error(JSON.stringify({message: 'The cve id non-sequential block is full for year '+year+'. No more sequential ids can be reserved at this time.'}))
691
+
logger.error({message: 'The cve id non-sequential block is full for year '+year+'. No more sequential ids can be reserved at this time.'})
returnres.status(400).json({error: 'BAD_INPUT',message: 'Parameters were invalid',details: [{param: 'authority',msg: 'Parameter must be a one-dimensional array of strings'}]})
returnres.status(400).json({message: 'Parameters were invalid',details: [{param: 'role',msg: `Role must be one of the following: ${constants.USER_ROLES}`}]})
0 commit comments