[rt-users] localizing warn/die handlers

Maurice Aubrey maurice at redweek.com
Thu May 15 15:26:28 EDT 2003


RT sets up global warn/die handlers at lib/RT.pm line 226 (RT 3.0.2).

It doesn't look like the original handlers are ever restored, so it
has the effect (under mod_perl) of routing all warnings/errors to the RT
logs, even for non-RT-related requests. I discovered this after hunting
around, trying to figure out why some warning messages were mysteriously
missing from the standard error logs.

Could we subclass the HTML::Mason handler and localize the warn/die
handlers so they are restored at the end of each RT request?

-- 
Maurice Aubrey <maurice at redweek.com>

GPG Key      http://lovelyfilth.com/~maurice/gpg
Fingerprint  1568 87BB 8934 F186 D116 1BC2 8BD1 F4E9 1C19 E0DF




More information about the rt-users mailing list