[IMP]: fetchmail: improve the log message

bzr revid: sbh@tinyerp.com-20110617082738-i0umdo9cptek6l4j
This commit is contained in:
Bhumika (OpenERP) 2011-06-17 13:57:38 +05:30
parent ca2598f997
commit 6df880e9a4
1 changed files with 1 additions and 1 deletions

View File

@ -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':