logger logs error if any