Просмотр исходного кода

log errors

GitOrigin-RevId: 3c507435956b3d312b00fefda1d4a996b6a45d62
Ersun Warncke 6 лет назад
Родитель
Сommit
ffd9ec5537
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      services/web/app/src/Features/Compile/ClsiManager.js

+ 5 - 1
services/web/app/src/Features/Compile/ClsiManager.js

@@ -477,7 +477,11 @@ const ClsiManager = {
         return callback()
       }
     } catch (err) {
-      // ignore errors here, which are very unlikely, and just attempt to set the root doc again
+      // continue on errors, which are very unlikely, and just attempt to set the root doc again
+      logger.error(
+        { err, project_id: project._id, rootDoc_id: project.rootDoc_id },
+        'error validating rootDoc_id'
+      )
     }
     ProjectRootDocManager.setRootDocAutomatically(project._id, callback)
   },