adjusted mongoose injection logging