[IMP]: fetchmail: improve the log message
authorBhumika (OpenERP) <sbh@tinyerp.com>
Fri, 17 Jun 2011 06:39:14 +0000 (12:09 +0530)
committerBhumika (OpenERP) <sbh@tinyerp.com>
Fri, 17 Jun 2011 06:39:14 +0000 (12:09 +0530)
bzr revid: sbh@tinyerp.com-20110617063914-lue87brktmevt9a8

addons/fetchmail/fetchmail.py

index 41f84cf..58a580d 100644 (file)
@@ -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)))