mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-20 11:48:28 -06:00
error: Properly debug generated details message
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
239015d248
commit
5aa0a1814b
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user