Are you meaning to log the payload type of the event message? If so, shouldn't it be `task.getPayloadType()` instead of `task.getClass()`?