Changeset 490:9ee656e6c2d2


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)

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r484 r490  
    125125                                     descriptionBuffer.get_end_iter(),
    126126                                     False)
     127        description = text2unicode(description)
    127128        self.set_sensitive(False)
    128         self._gui.sendBugReport(self._summary.get_text(),
     129        self._gui.sendBugReport(text2unicode(self._summary.get_text()),
    129130                                description,
    130                                 self._email.get_text(),
     131                                text2unicode(self._email.get_text()),
    131132                                self._bugReportSent)
    132133
  • 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.