[rt-users] scrip not logging
Ruslan Zakirov
ruz at bestpractical.com
Mon Aug 13 11:42:15 EDT 2012
On Mon, Aug 13, 2012 at 7:28 PM, Gergely Buday <gbuday at gmail.com> wrote:
> Hi there,
>
> my scrip is logged, but my logging commands do not result in a log
> line. Here is the log the system prints upon its start:
>
> Aug 13 17:23:04 dox RT:
> <rt-4.0.3-25618-1344871384-617.2211-23-0 at dox.analogydialogue.com>
> #2211/33968 - Scrip 23 Email dummy
> (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301)
>
> But the following condition does not write the any log:
>
> $RT::Logger->info("Hello RT World!");
>
> my $cf=$self->TransactionObj->CreatorObj->LoadCustomFieldByIdentifier('107');
>
> my $cf2 = $session->{'CurrentUser'}->UserObj->FirstCustomFieldValue('107');
>
> $RT::Logger->info("cf=$cf");
> $RT::Logger->info("cf2=$cf2");
>
> return 1;
>
> What is the problem with the above code?
Have you picked user defined condition for the scrip? Custom condition
code you write in the UI only works with "User Defined".
> - Gergely
--
Best regards, Ruslan.
More information about the rt-users
mailing list