[rt-users] user id and timeworked value of a transaction (was Re: need some explanation on rt.log data)

Asif Iqbal vadud3 at gmail.com
Sat Jun 4 22:42:05 EDT 2011


On Fri, Jun 3, 2011 at 3:10 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
> On Fri, Jul 16, 2010 at 3:10 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
>> On Fri, Jul 9, 2010 at 2:45 PM, Kenneth Crocker <kfcrocker at lbl.gov> wrote:
>>> Asif,
>>>
>>> Sometimes, depending on the message, the number refers to the script being
>>> acted on or a user ID or a QueueID, etc. That's about all I know.
>>
>> I applied the attached patch on /opt/rt3/lib/RT/Action/SendEmail.pm
>>
>> and now info log generated by SendEmail.pm on rt.log shows like this
>>
>> <rt-3.8.2-485-1279306601-1713.769653-174-0-4525583 at rt.example.net>
>
> as shown in my patch, I were able to add the transaction id from
> $self->TransactionObj->id;
>
> I like to modify this patch to add user id who created the transaction and
> the optionla timeworked value for the transaction
>
> how do I get the user id and timeworked value of a transaction ?

Ok included patch (patched lib/RT/Action/SendMail.pm) added the
transaction id, user who worked on that transaction and timeworked
to the rt-version line in rt.log and it shows like this, sanitized. YMMV

Sun Jun  5 02:31:05 2011] [info]:
<rt-3.8.2-18896-1307241065-768.863978-87-0-5358179-6268-10 at rt.example.net>
#863978/5358179 - Scrip 87 Imported from RT 2.0
(/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:306)

How do I convert the $self->TransactionObj->Creator to the name of the creator?



>
>
>>
>> The last number is now transaction id.
>>
>> [..]
>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>



-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib.RT.Action.SendMail.pm.patch
Type: text/x-patch
Size: 3870 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110604/be33a228/attachment.bin>


More information about the rt-users mailing list