log local var clobbered in lib/lp/services/mail/incoming.py

Bug #403521 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

The log variable, initialised around line 180, inside handleMail()
before the main processing loop, gets clobbered in a few places within
the loop. I think this is unlikely to be desired behaviour, though it
doesn't seem to be causing problems right now.

{{{
    log = getLogger('process-mail')
...
        for mail_id, raw_mail in mailbox.items():
            log.info("Processing mail %s" % mail_id)
...
                try:
                    mail = signed_message_from_string(raw_mail)
                except email.Errors.MessageError, error:
                    mailbox.delete(mail_id)
                    log = getLogger('canonical.launchpad.mail')
}}}

tags: added: cleanup email
affects: launchpad → malone
Colin Watson (cjwatson)
summary: - log local var clobbered in lib/canonical/launchpad/mail/incoming.py
+ log local var clobbered in lib/lp/services/mail/incoming.py
Revision history for this message
Colin Watson (cjwatson) wrote :

This appears to have been fixed in r12990.

Changed in launchpad:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.