Log mongo errors.