Ignore:
Timestamp:
04/01/13 11:52:28 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added the appending of the log and the debug log to the bug report (re #190)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r484 r490  
    13851385    def sendBugReport(self, summary, description, email, callback = None):
    13861386        """Send the bug report with the given data."""
     1387        description += "\n\n" + ("=" * 40)
     1388        description += "\n\nThe contents of the log:\n\n"
     1389
     1390        for (timestampString, text) in self._logger.lines:
     1391            description += unicode(formatFlightLogLine(timestampString, text))
     1392
     1393        description += "\n\n" + ("=" * 40)
     1394        description += "\n\nThe contents of the debug log:\n\n"
     1395
     1396        buffer = self._debugLogView.get_buffer()
     1397        description += buffer.get_text(buffer.get_start_iter(),
     1398                                       buffer.get_end_iter(), True)
     1399
    13871400        self.beginBusy(xstr("sendBugReport_busy"))
    13881401        self._sendBugReportCallback = callback
Note: See TracChangeset for help on using the changeset viewer.