coto / gae-boilerplate

Google App Engine Boilerplate
https://dev-dot-sandengine.appspot.com/
Other
684 stars 188 forks source link

Added in config.py 2 vars to control logging of email and visit #229

Closed gabrielhpugliese closed 11 years ago

gabrielhpugliese commented 11 years ago

Done it for my project because I don't want to spend money logging those stuff in datastore. I hope it is useful for someone.

peterretief commented 11 years ago

the email log went into a loop when I uploaded to app engine, This happened instantly Recipients Emailed 100% 100 of 100 Limited

gabrielhpugliese commented 11 years ago

Ok. I will check it.

gabrielhpugliese commented 11 years ago

Can you please tell me what you've done ? I can only reproduce that if I keep 'developers' : ( ('Santa Klauss', 'snowypal@northpole.com'), ), and go to an invalid URL And in this case, there's another issue: https://github.com/coto/gae-boilerplate/issues/223

peterretief commented 11 years ago

That is the issue, sorry - been out of the loop for quite some time

On 14 January 2013 17:48, Gabriel H Pugliese notifications@github.comwrote:

Can you please tell me what you've done ? I can only reproduce that if I keep 'developers' : ( ('Santa Klauss', 'snowypal@northpole.com'), ),

And in this case, there's another issue: #223https://github.com/coto/gae-boilerplate/issues/223

— Reply to this email directly or view it on GitHubhttps://github.com/coto/gae-boilerplate/pull/229#issuecomment-12224082.

rchaber commented 11 years ago

I had the exactly same problem, with 5 emails/error logs sent per second, until quota was exceeded. I disabled sent mail to developers and the problem was partially solved. The thing is, when sending undeliverable mail to developers, it should not count it as an error that is supposed to be sent out to developers.

viafo commented 11 years ago

NB: The reason the email code was throwing an exception for me was that the "From" field has to be either the google account that owns the app, or of the form xxx@appname.appspotmail.com. So be careful what you put in your config!