mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Merge pull request #3075 from overleaf/msm-codemod-oerror-v3-logging
Replaced logger.warn statements with OError.tag() GitOrigin-RevId: 4d821ec48a0006abb1fcffe07dbb5511c88f5b9a
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
let InactiveProjectManager
|
||||
const OError = require('@overleaf/o-error')
|
||||
const async = require('async')
|
||||
const _ = require('underscore')
|
||||
const logger = require('logger-sharelatex')
|
||||
@@ -27,7 +28,9 @@ module.exports = InactiveProjectManager = {
|
||||
project
|
||||
) {
|
||||
if (err != null) {
|
||||
logger.warn({ err, project_id }, 'error getting project')
|
||||
OError.tag(err, 'error getting project', {
|
||||
project_id
|
||||
})
|
||||
return callback(err)
|
||||
}
|
||||
logger.log(
|
||||
@@ -41,10 +44,9 @@ module.exports = InactiveProjectManager = {
|
||||
|
||||
return DocstoreManager.unarchiveProject(project_id, function(err) {
|
||||
if (err != null) {
|
||||
logger.warn(
|
||||
{ err, project_id },
|
||||
'error reactivating project in docstore'
|
||||
)
|
||||
OError.tag(err, 'error reactivating project in docstore', {
|
||||
project_id
|
||||
})
|
||||
return callback(err)
|
||||
}
|
||||
return ProjectUpdateHandler.markAsActive(project_id, callback)
|
||||
|
||||
Reference in New Issue
Block a user