add log msg to space.js
fix incorrect userid when getting space list