set log level to info for unsupported languages

GitOrigin-RevId: 4355c66c57dfb8afd942e550c6700d87a88f0f2b
This commit is contained in:
mserranom 2019-07-16 12:22:53 +00:00 committed by sharelatex
parent b3501a40e3
commit 0d00aa5500

View file

@ -12,7 +12,7 @@ module.exports = {
proxyRequestToSpellingApi(req, res) {
const { language } = req.body
if (language && !languageCodeIsSupported(language)) {
logger.warn(`language_code=${language} not supported`)
logger.info({ language }, `language not supported`)
return res.status(200).send(JSON.stringify({ misspellings: [] }))
}