- #for time, code, msg in timer.log_entries:
- #list.append('<log')
- #list.append(' code="' + str(code) + '"')
- #list.append(' time="' + str(time) + '"')
- #list.append('>')
- #list.append(str(msg))
- #list.append('</log>\n')
-
+ if config.recording.debug.value:
+ for time, code, msg in timer.log_entries:
+ list.append('<log')
+ list.append(' code="' + str(code) + '"')
+ list.append(' time="' + str(time) + '"')
+ list.append('>')
+ list.append(str(stringToXML(msg)))
+ list.append('</log>\n')