Emit over logging. Also fixed crash