浏览代码

set log level to info for unsupported languages

GitOrigin-RevId: 4355c66c57dfb8afd942e550c6700d87a88f0f2b
mserranom 7 年之前
父节点
当前提交
0d00aa5500
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/app/src/Features/Spelling/SpellingController.js

+ 1 - 1
services/web/app/src/Features/Spelling/SpellingController.js

@@ -12,7 +12,7 @@ module.exports = {
   proxyRequestToSpellingApi(req, res) {
   proxyRequestToSpellingApi(req, res) {
     const { language } = req.body
     const { language } = req.body
     if (language && !languageCodeIsSupported(language)) {
     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: [] }))
       return res.status(200).send(JSON.stringify({ misspellings: [] }))
     }
     }