log errors

GitOrigin-RevId: 3c507435956b3d312b00fefda1d4a996b6a45d62
This commit is contained in:
Ersun Warncke 2020-01-29 07:06:06 -04:00 committed by Copybot
parent b493f91c45
commit ffd9ec5537

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