Skip to contentSkip to conversation

report-error: Add posting in the public note

PATCH New Saul Wold 1 participant 1 message Apr 22, 2014

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 report-error: Add posting in the public note

---
 meta/classes/report-error.bbclass | 1 +
 scripts/send-error-report         | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes/report-error.bbclass +1 -0
index 479b38d..15adc97 100644
@@ -60,6 +60,7 @@ python errorreport_handler () {
                 filename = "error_report_" + e.data.getVar("BUILDNAME")+".txt"
                 datafile = errorreport_savedata(e, jsondata, filename)
                 bb.note("The errors of this build are stored in: %s. You can send the errors to an upstream server by running: send-error-report %s [server]" % (datafile, datafile))
+                bb.note("The contents of these logs will be posted in public if you use the above script. Please ensure you remove any identifying or propriety information before sending.")
 }
 
 addhandler errorreport_handler
scripts/send-error-report +2 -1
index 3d1f7a4..48d983b 100755
@@ -97,8 +97,9 @@ def sendData(json_file, server):
 
 if __name__ == '__main__':
     print ("\nSends an error report (if the report-error class was enabled) to a remote server.")
+    print("\nThis scripts sends the contents of the error to a public upstream server.")
+    print("\nPlease remove any identifying information before sending.")
     if len(sys.argv) < 2:
-        print("\nThis scripts sends the contents of a file to an upstream server.")
         print("\nUsage: send-error-report <error_fileName> [server]")
         print("\nIf this is the first when sending a report you'll be asked for your name and optionally your email address.")
         print("They will be associated with your report.\n")
Signature · 1 line
1.8.3.1