I'm sure he tests throughly beforehand. but issues like database corruption, bad networks, and DoS attacks can happen which you don't expect, and can't test properly in staging. all of these can cause a flood of emails bring down mail servers rending other parts of your system unworkable..not a good idea at all.
for example.. on our production ad-servers we normally log 3 errors/second.. when things go wrong that goes up to 1000/sec and stays there until it is fixed. What he is asking for is sane I belive. .. logging the error to the error log is what I expect applications to do, as that is where all the other errors go to. this should be the default setting for a production environment.. emailing on error really smells like your running a 'toy' site. and can easily cause your a) mail server to die b) pager and mailbox to become full, deleteing 1000 pages from a pager is not fun. c) admins to dislike you even more than they would normally ;-) regards Ian On 1/8/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > On Saturday 07 January 2006 02:17, WSobczuk wrote: > > I'm not saying I wnat to send information to users, I'm saying I want > > it logged (at least to stdout is it *that* hard?). And I'm not keen on > > putting down my email server when I publish some broken code and get > > 10000 error emails. Email isn't a means of error reporting - logs are. > > > > And digging through templates isn't really my idea of debugging. Is it > > really so hard to print what template was the one in which the error > > occurred?? > > If it were me, I'd get all this crap worked out on a staging server first with > thorough testing. In other words, minimize the amount of broken code you > publish and you won't have to worry about 10,000 emails telling you you > screwed up. Really, this shouldn't be an issue in a production environment. > > As far as logging goes, Python has a nice logging facility that allows you to > write to stdout, log files (with log file rotation), to a database and to > email (is it *that* hard to find it yourself?): > <http://docs.python.org/lib/module-logging.html> > or > import logging > help(logging) > or > google > or ... > > I suggest less whining and more reading. > > Eric. > -- [EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti

