]> code.ossystems Code Review - openembedded-core.git/commitdiff
report-error: Add posting in the public note
authorSaul Wold <sgw@linux.intel.com>
Tue, 22 Apr 2014 23:42:25 +0000 (16:42 -0700)
committerSaul Wold <sgw@linux.intel.com>
Fri, 23 May 2014 16:09:39 +0000 (09:09 -0700)
(From OE-Core rev: c2eb5cd1aa4632f7ee8c261414e599dcb6f40a8b)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/report-error.bbclass
scripts/send-error-report

index 479b38deb023b87ea7bdf1a57988531df9d52445..15adc97b52d503653b262568c6725ec6ab6359a2 100644 (file)
@@ -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
index 3d1f7a40179ad3fc0b8ac54e2e7d9f0baab2dc1d..48d983bc0ef359fc49e7ed76d4a66d218cf3da08 100755 (executable)
@@ -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")