Fix error message on logging events

Pretty small fix