Revert "Revert "log errors""

This reverts commit 0db1d89ac75bf80e1d28dbd02110809fa24f4a9f.

GitOrigin-RevId: 3911f3380767ae2e24b3694ef21c4eb73a7219b3
This commit is contained in:
Ersun Warncke 2020-02-05 08:53:31 -04:00 committed by Copybot
parent f326d632ab
commit d0ada551fa

View file

@ -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)
},