sub log_errors { my $self = shift; return $self unless $self->error; $self->_log_errors; }