Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

modperl and syslog, strange behavior

John Gateley

2008-04-15

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Y'all,

I'm new to mod_perl, please forgive me if this is already well known
info.

I have several different web scripts like:

if($UseLog) {
Sys::Syslog::setlogsock('unix');
openlog("$WebScriptName", 'pid', 'daemon');
syslog('info', "$WebScriptName starting");
}
...
syslog('info', "Message"); # Actually buried in a subroutine
...

Originally, if $UseLog was false for an invocation of the script,
the "Message" would not appear in the syslog.

When I turned on mod_perl, sometimes I found "Message" appearing,
but under a different script's name.

So: mod_perl is somehow saving the socket state between runs of
webscripts, right?

Is it doing what it is supposed to be doing? Is there anything
wrong with what I am doing?

And most important - is there any other area that has the same or
similar behavior?

Thanks,

j

--
John Gateley <gateley@(protected)>
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.