From 5c108a6559c6a39beaed2600871b02d0a54edd25 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 6 Apr 2013 17:57:32 -0700 Subject: The Switchboard.finish() method now logs the text of the exception when it fails to unlink/preserve a .bak file. (LP: 1165589) --- Mailman/Queue/Switchboard.py | 6 +++--- NEWS | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py index bd1cd357..a2c31263 100644 --- a/Mailman/Queue/Switchboard.py +++ b/Mailman/Queue/Switchboard.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2013 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -184,8 +184,8 @@ class Switchboard: else: os.unlink(bakfile) except EnvironmentError, e: - syslog('error', 'Failed to unlink/preserve backup file: %s', - bakfile) + syslog('error', 'Failed to unlink/preserve backup file: %s\n%s', + bakfile, e) def files(self, extension='.pck'): times = {} diff --git a/NEWS b/NEWS index c71be5b8..da3f3b3e 100755 --- a/NEWS +++ b/NEWS @@ -58,6 +58,9 @@ Here is a history of user visible changes to Mailman. Bug Fixes and other patches + - The Switchboard.finish() method now logs the text of the exception when + it fails to unlink/preserve a .bak file. (LP: 1165589) + - The pending (un)subscriptions waiting approval are now sorted by email address in the admindb interface as intended. (LP: 1164160) -- cgit v1.2.3