Kevin,<br><br>OK. I see that. I was just wondering if there was a way to reduce the number of error messages. I mean, I only need to see one or two error messages and I can figure out that it needs work or whatever. But any more than that just seems redundant. My thinking that less messages would be less I/O and therefore faster response. Just a thought.<br>
<br>Thanks for your answer. I DO appreciate it!<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 7:53 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Fri, Aug 27, 2010 at 04:17:45PM -0700, Kenneth Crocker wrote:<br>
> To List,<br>
><br>
> I have a scrip that checks to see if the requestor is also the AdminCc so that duplicate<br>
> emails are not sent, The condition is:<br>
><br>
<br>
</div>Line 8/9 has an error<br>
<br>
1 # Check for Ticket Status changed to "QA approvd"<br>
2 # and cancel if Admin and Requestor is same user<br>
3<br>
4 my $trans = $self->TransactionObj;<br>
5 my $ticket = $self->TicketObj;<br>
6 my $requestor = $ticket->Requestors->UserMembersObj->First->EmailAddress;<br>
7<br>
8 if ($ticket->IsWatcher(Type => 'AdminCc', EmailAddress => $requestor)<br>
9 {<br>
<br>
which is what the log was telling you<br>
<div><div></div><div class="h5">> return 0;<br>
> }<br>
><br>
> return ($trans->Type eq "Status" &&<br>
> $trans->NewValue eq "QA approvd");<br>
><br>
> The action is Notify AdminCc's<br>
><br>
> The erro I'm getting on the log is:<br>
><br>
> [Fri Aug 27 22:48:58 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1510) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:49:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1574) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:49:37 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1829) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1756) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1758) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1760) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1762) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:56:28 2010] [warning]: Couldn't enable user 226<br>
> (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1143)<br>
> [Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2318) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2320) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2322) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2324) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2326) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 22:59:45 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1703) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:00:47 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2108) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:02:32 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1661) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:03:17 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 2472) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:05:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1913) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:05:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax error at (eval<br>
> 1915) line 9, near ")<br>
> {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)<br>
> [Fri Aug 27 23:05:58 2010] [error]: Group::HasMember was called with an argument that isn't an<br>
> RT::Principal or id. It's (undefined) (/opt/rt3/bin/../lib/RT/Group_Overlay.pm:1046)<br>
> [Fri Aug 27 23:05:58 2010] [error]: Group::HasMember was called with an argument that isn't an<br>
> RT::Principal or id. It's (undefined) (/opt/rt3/bin/../lib/RT/Group_Overlay.pm:1046)<br>
><br>
> Scrip 50899 is the scrip I'm talking about.<br>
><br>
> Now, my first real BIG question is "Why does it write out so many error messages for the same<br>
> scrip"? I mean, that's a lot of I/O for just one error.<br>
><br>
> I am the AdminCc of the Queue AND the Requestor for the ticket being evaluated.<br>
><br>
> The scrip worked. No email went out because I'm in both roles. Normally, just the requestor<br>
> would get that email.<br>
><br>
> So, why doesn't it just write out one error line?<br>
><br>
> This is just so I can understand what RT is doing in the background here.<br>
><br>
> Thanks.<br>
><br>
> Kenn<br>
> LBNL<br>
<br>
><br>
</div></div>> RT Training in Washington DC, USA on Oct 25 & 26 2010<br>
> Last one this year -- Learn how to get the most out of RT!<br>
<br>
<br><br>
RT Training in Washington DC, USA on Oct 25 & 26 2010<br>
Last one this year -- Learn how to get the most out of RT!<br></blockquote></div><br>