[IMP] Improved logger.
authorThibault Delavallée <tde@openerp.com>
Thu, 3 Jan 2013 17:30:19 +0000 (18:30 +0100)
committerThibault Delavallée <tde@openerp.com>
Thu, 3 Jan 2013 17:30:19 +0000 (18:30 +0100)
bzr revid: tde@openerp.com-20130103173019-8flxl30b129u8kpz

addons/mail/mail_thread.py

index 12e43d0..be34153 100644 (file)
@@ -497,7 +497,7 @@ class mail_thread(osv.AbstractModel):
                         # Note: recognized partners will be added as followers anyway
                         # user_id = self._message_find_user_id(cr, uid, message, context=context)
                         user_id = uid
-                        _logger.debug('Routing mail with Message-Id %s: direct alias match: %r', message_id, routes)
+                        _logger.debug('No matching user_id for the alias %s', alias.alias_name)
                     routes.append((alias.alias_model_id.model, alias.alias_force_thread_id, \
                                    eval(alias.alias_defaults), user_id))
                 _logger.debug('Routing mail with Message-Id %s: direct alias match: %r', message_id, routes)