On Fri, 22 Jun 2001, Doug MacEachern wrote:
> On Sat, 23 Jun 2001, Stas Bekman wrote:
>
> > this works too:
> > my $oldfh = select(STDERR); $| = 1; select($oldfh);
> > print STDERR "stderr\n";
> >
> > I thought STDERR is unbuffered by default. Do you mangle with it? If so,
> > how come warn() has it unbuffered?
>
> modperl doesn't mess with it, not sure whats going on here.
I'm not sure how to approach this one. Should I log this issue somewhere
in todo/ ?
> > While we are on this point, it'd be nice to be able to tell the Test suite
> > not to delete the log files on server restart. For two reasons:
> >
> > 1) be able to refer to older logs
> > 2) have the logs open via tail -f all the time
>
> try it, this already works by default.
I did. It deletes the files on shutdown.
Apache-Test/lib/Apache/TestServer.pm:199: $self->clean unless $aborted;
I want to be able to restart the server and still keep the error_log
there, so I won't need to restart tail -f all the time.
> > of course by default these should be disabled. May be --keep-logs, or some
> > other flag that might group a number of features suitable for debugging
> > (without gdb). In fact I suggest to use --debug for normal debug (e.g. as
> > a group tag for --keep-logs, raising the trace prints level to 'debug' and
> > more to come), whereas the current --debug should be --gdb or similar.
>
> t/TEST already keeps the logs around, it only deletes them if you say
> t/TEST -clean (which 'make test' does)
not only on -clean, see above.
> > so to summarize my suggestion:
> >
> > - s/debug/gdb/
> > - add --keep-logs flag (Getopts: "keep-logs")
> > - add --loglevel flag (Getopts: "log-level=s")
>
> what loglevel is this? apache LogLevel or Apache::TestTrace level?
Apache::TestTrace
> i don't want to add anything called 'gdb', wouldn't mind replacing the
> current -debug with -debugger, but the idea is the test suite should start
> gdb, dbx, or whatever debugger is appropriate.
sure, no problem here.
> but then the 't/TEST -d' shortcut would nolonger work, which i kinda like.
--devel then? still collides with -d. but now you can tell --deb vs --dev.
But first do you agree that it'd be nice to have an option to enable a
bunch of debug/development options at once. If you have some other idea
for the trigger please tell me, I don't seem to come up with a nice
replacement to devel/debug which doesn't start with 'd' ;)
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]