mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
removed type: from log lines
This commit is contained in:
parent
7ba6689ea0
commit
35a90b9cbc
4 changed files with 4 additions and 5 deletions
|
@ -90,7 +90,7 @@ module.exports = ProjectController =
|
|||
user = req.session.user
|
||||
projectName = req.body.projectName?.trim()
|
||||
template = req.body.template
|
||||
logger.log user: user, type: template, name: projectName, "creating project"
|
||||
logger.log user: user, projectType: template, name: projectName, "creating project"
|
||||
async.waterfall [
|
||||
(cb)->
|
||||
if template == 'example'
|
||||
|
|
|
@ -306,7 +306,7 @@ module.exports = ProjectEntityHandler =
|
|||
|
||||
deleteEntity: (project_id, entity_id, entityType, callback = (error) ->)->
|
||||
self = @
|
||||
logger.log entity_id:entity_id, type:entityType, project_id:project_id, "deleting project entity"
|
||||
logger.log entity_id:entity_id, entityType:entityType, project_id:project_id, "deleting project entity"
|
||||
if !entityType?
|
||||
logger.err err: "No entityType set", project_id: project_id, entity_id: entity_id
|
||||
return callback("No entityType set")
|
||||
|
|
|
@ -36,7 +36,7 @@ module.exports =
|
|||
type = 'doc'
|
||||
else if element.folders?
|
||||
type = 'folder'
|
||||
logger.log project_id:project_id, path:path, type:type, element:element, "processing update to delete entity from tpds"
|
||||
logger.log project_id:project_id, updateType:path, type:type, element:element, "processing update to delete entity from tpds"
|
||||
editorController.deleteEntity project_id, element._id, type, source, (err)->
|
||||
logger.log project_id:project_id, path:path, "finished processing update to delete entity from tpds"
|
||||
callback()
|
||||
|
|
|
@ -83,8 +83,7 @@ ProjectSchema.statics.putElement = (project_id, folder_id, element, type, callba
|
|||
mongo: path.mongo # TODO: This is not correct
|
||||
if err?
|
||||
callback(err)
|
||||
logger.log project_id: project_id, element_id: element._id, type: type, folder_id: folder_id,
|
||||
"adding element to project"
|
||||
logger.log project_id: project_id, element_id: element._id, fileType: type, folder_id: folder_id, "adding element to project"
|
||||
id = element._id+''
|
||||
element._id = concreteObjectId(id)
|
||||
conditions = _id:project_id
|
||||
|
|
Loading…
Reference in a new issue