don't log out when doc lines are [] as this is a new empty doc

This commit is contained in:
Henry Oswald 2015-02-23 13:17:55 +00:00
parent daf7c4f68e
commit 3cd3c118d1

View file

@ -16,6 +16,7 @@ module.exports = DocManager =
if docFromDocCollection?
return callback null, docFromDocCollection, mongoPath
else if doc?
if doc?.lines?.length > 0
logger.warn project_id:project_id, doc_id:doc_id, "doc just used from project collection, why?"
return callback null, doc, mongoPath
else