Jelajahi Sumber

Revert "Revert "log errors""

This reverts commit 0db1d89ac75bf80e1d28dbd02110809fa24f4a9f.

GitOrigin-RevId: 3911f3380767ae2e24b3694ef21c4eb73a7219b3
Ersun Warncke 6 tahun lalu
induk
melakukan
d0ada551fa
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  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)
   },