[rt-users] scrip not logging

Gergely Buday gbuday at gmail.com
Mon Aug 13 11:28:49 EDT 2012


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?

- Gergely



More information about the rt-users mailing list