[IMP] email sending: use OpenERP logger instead of logging...

bzr revid: christophe@tinyerp.com-20090428135045-qh3h94cv6igneakp
This commit is contained in:
Christophe Simonis 2009-04-28 15:50:45 +02:00
parent c10a7f0e28
commit 8e1ab8207c
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=Non
)
s.quit()
except Exception, e:
import logging
logging.getLogger().error(str(e))
import netsvc
netsvc.Logger().notifyChannel('email_send', netsvc.LOG_ERROR, e)
return False
return True