fix logging in sparkshell