[IMP] email sending: use OpenERP logger instead of logging...
bzr revid: christophe@tinyerp.com-20090428135045-qh3h94cv6igneakp
This commit is contained in:
parent
c10a7f0e28
commit
8e1ab8207c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue