Log errors instead of emitting an error event