log error to console