Philip Mak wrote:
> 
> On Mon, 20 Aug 2001, Fernando Munoz wrote:
> 
> > I would like to know if there is a way to avoid the webserver to display the
> > whole asp script when it crashes for any reason. I tried not using any debug
> > flag with PerlSetVar with no results. I find "dangerous" to show all the DB
> > access when something goes wrong with the web server.
> 
> Try "PerlSetVar Debug 0" or "PerlSetVar Debug 1". That will make it not
> show the code.
> 
> Incidentally, I've been wondering if there is a way to make error messages
> show up like Microsoft ASP does. It displays only the error message, as
> well as the line number and filename that the error message occured in
> (this is shown to the browser). I think that this is useful for production
> debugging; makes it easier for the programmer to find the bug without
> having to go into the error log, without exposing all your source code to
> the public.
> 

No there isn't, but you might achieve this with 

  PerlSetVar MailErrorsTo email@address

since what would have been the Debug 2 output goes
to that email address, but doesn't leave any error
for the customer to see, besides the splash screen
you create for ErrorDocument 500.

You can also set MailAlertTo for real time event
notification of these errors.  See the 
  http://www.apache-asp.org/config.html#Mail%20Administration
section for more info.

[[ you had probably seen these already, but just in case! ]]

--Josh

PS. I had always thought it awfully rude when I visited ASP
sites that burdened customers with their error messages,
so what I proscribe above was an intentional replacement
to what you suggest, funny.

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to