Log the error
Had to implement for pubsub so I'd imagine this what the code should have looked like