error: Properly debug generated details message

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2011-04-09 21:42:41 -04:00
parent 239015d248
commit 5aa0a1814b

View File

@ -63,9 +63,6 @@ class vmmErrorDialog (object):
dialog_type=gtk.MESSAGE_ERROR,
buttons=gtk.BUTTONS_CLOSE,
text2=None):
if debug:
logging.debug("dialog message: %s : %s" % (summary, details))
if details is None:
details = summary + "\n\n" + "".join(traceback.format_exc())
@ -74,6 +71,9 @@ class vmmErrorDialog (object):
details.count(summary)):
details = summary + "\n\n" + details
if debug:
logging.debug("dialog message: %s : %s" % (summary, details))
dialog = _errorDialog(parent=self.get_parent(),
type=dialog_type, buttons=buttons)