Subject: | Type of started daemon incorrectly shown |
Net/Server.pm line 343 says
my $ns_type = (! $super || $ref eq $super) ? '' : " (type $super)";
$self->log(2,$self->log_time ." ". ref($self) .$ns_type. " starting!
pid($$)");
In my log-file, this shows up like
Mar 27 14:11:47 earth server.pl[29586]: 2008/03/27-14:11:47
XML::Compile::SOAP::HTTPDaemon (type XML::Compile::SOAP::Daemon)
starting! pid(29586)
As you see, the
- time is shown twice
- the process-id is shown twice
- the type of daemon is incorrect
I think that process-id and time should be added by the log() method for
each recorded line, if it does not log to syslog.
Besides, the super of my class is also defined by myself... I think
there is a need for a type method, such that you can say $daemon->type.
So, I would prefer a log-line like this:
Mar 27 14:11:47 earth server.pl[29586]: daemon My::Daemon (type
PreFork) started with 10 childs