Changing logging type from warning to error