Added error to logger