debug logging in views