Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Disable writing of eval'd errors to CGI log

by Zed_Lopez (Chaplain)
on Nov 27, 2003 at 06:24 UTC ( #310485=note: print w/replies, xml ) Need Help??


in reply to Disable writing of eval'd errors to CGI log

I suspect you've left PrintError => 1 in DBI (which is its default value). This means DBI is warning, not dying and the eval block doesn't trap warnings -- they'll go to whatever your $SIG{__WARN__} handler is (which is probably the default and is printing to STDERR.) Set RaiseError => 1, PrintError => 0.

I don't know anything about BioPerl but expect it's also warnings.

  • Comment on Re: Disable writing of eval'd errors to CGI log

Replies are listed 'Best First'.
Re: Re: Disable writing of eval'd errors to CGI log
by Itatsumaki (Friar) on Nov 28, 2003 at 18:37 UTC

    Thanks: this did indeed fix the DBI-based warnings I was getting.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://310485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-12-05 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?