improve CWR event logging
fix indentation mistake