mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 16:50:44 +02:00
set log level to info for unsupported languages
GitOrigin-RevId: 4355c66c57dfb8afd942e550c6700d87a88f0f2b
This commit is contained in:
@@ -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: [] }))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user