log only in development mode