Scrip not logging

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@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?

  • Gergely

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@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.