On 11/4/05, Peter Speltz <[EMAIL PROTECTED]> wrote:
> On 11/3/05, David Baird <[EMAIL PROTECTED]> wrote:
> <snip>
>
>
>
> > I'm just wondering if it might also cut down on the phantom errors.
> >
>
> Don't have time to look in all the rest however, what exactly were the
> cases of phantom errors?

During development I'd get phantom server errors with nothing being
reported in the error log, even with debugging turned on. Never
tracked it down. Also, when errors do show up in the error log, the
stack trace usually starts from where Maypole catches the error, so
it's difficult to track down the source of the error. And, newlines
are translated into \n, somewhere, which makes the trace harder to
follow.

One class of errors were caused by syntax errors in custom model
modules. They weren't reported as such, but I learned that an error
message 'Can't locate handler method via ...' meant there was a syntax
error in one of these modules.

> If I recall I think mine were from the
>
> BeerDB::Beer->require;
>
> statements in my driver.  By default it does not die if Beer.pm has
> errors.   So I changed all my staments to
> BeerDB::Beer->require || die Universal::require::ERROR;
> and dont think I have had them since.
>
> My driver has about 30 or so statements like that. I dont think I
> would mind if Maypole did that for me.  The problem is is sometimes
> order is important or was .  I also dont mind having those statements.
> If I want to work on a module, I can take that module  out and leave
> the rest of the app going how it is.

Good point. I think it's worthwhile for Maypole to load these up by
default, but it should be made easy to turn it off. I've implemented
the setup_model() method that we talked about a while back, how about
also a load_custom_model_classes() method or somesuch, called from
setup_model(), so you can just override it with an empty method if you
want to load up these classes yourself.

d.





>
> cheers
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to