[rt-users] Timestamps when logging to a file
Mike Friedman
mikef at ack.Berkeley.EDU
Mon Dec 12 23:08:28 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 12 Dec 2005 at 18:29 (-0800), Jim Meyer wrote:
> On Mon, 2005-12-12 at 16:35, Mike Friedman wrote:
>> Now most of the entries in my log file are, indeed, in local time, but
>> they are interspersed with messages that are still using GMT. Is there
>> some other place besides RT.pm that I must change in order to get
>> consistent local time in my log file?
>
> YMMV, but here's how I go hunting such things:
>
>> cd /path/to/rt
>> grep -rl gmtime lib
> lib/RT/Date.pm
> lib/RT/Tickets_Overlay.pm
> lib/RT.pm
> lib/RT.pm.in
Jim,
I had already done that. But when I looked at the code in those two
modules, it appeared that they just manipulate dates, but don't actually
do their own logging.
My problem is specifically with the writing to a log file. (In fact, if I
configure to write to syslog instead, I get local time with no mods, and
this makes sense from the code because syslogging is treated differently).
I was hoping that there is some other module that is influencing the date
in the logs in a more subtle way, perhaps not calling gmtime directly.
Or, maybe RT.pm is the only responsible module, but I need to do more than
just copy it to local/lib. (Unlike mason components, there doesn't seem to
be a cache that needs to be deleted. Besides, I am getting localtime in
most of my log messages, it's just that about 1/3 of them are still using
GMT).
Mike
_____________________________________________________________________
Mike Friedman System and Network Security
mikef at ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://ack.Berkeley.EDU/~mikef http://security.berkeley.edu
_____________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBQ55JQK0bf1iNr4mCEQJOzgCfZWubG24nUjsmpwsqe0cxzIdxEzcAni2Z
g+M1xllcbgkaN77XlJkZoE1W
=5FwP
-----END PGP SIGNATURE-----
More information about the rt-users
mailing list