Skip to content

Commit

Permalink
Don't log error message unless there was an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jibsheet committed Feb 10, 2010
1 parent 6a0692c commit acee668
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if ($ARGSRef->{id} eq 'new' && $$TicketObj->Id
Type => $ARGSRef->{'CommentContentType'},
);
my( $status, $msg ) = $$TicketObj->Comment(MIMEObj => $MIMEObj);
$RT::Logger->error( "failed to comment on ticket: $msg" );
$RT::Logger->error( "failed to comment on ticket: $msg" ) unless $status;
}
}
</%INIT>
Expand Down

0 comments on commit acee668

Please sign in to comment.