diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-07-06 16:56:44 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-07-06 16:56:44 +0200 |
| commit | 9c9516d21c4fbc2a51bd71d45dfc2ee61695303a (patch) | |
| tree | dd71b3f5462eeed01ad1f3611c1190580b567e88 /addons/fetchmail/fetchmail.py | |
| parent | a77b8bc8119e1b78fc1b46f4c94416c2d93ff6d8 (diff) | |
| parent | 4a2f59cca8ee4ffd15394699e2576d979a604ed5 (diff) | |
[MERGE] merged with main addons trunk
bzr revid: qdp-launchpad@openerp.com-20110706145644-merwy0setzzb8c9w
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 9aeddd7ba9b..9817f0d6633 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -116,7 +116,7 @@ class email_server(osv.osv): if context is None: context = {} for server in self.browse(cr, uid, ids, context=context): - logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name)) + logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name)) context.update({'server_id': server.id, 'server_type': server.type}) try: if server.type == 'imap': @@ -199,7 +199,7 @@ class email_server(osv.osv): pop_server.quit() - logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name)) + logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name)) except Exception, e: logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (tools.ustr(e))) |
