diff options
author | Saul Wold <sgw@linux.intel.com> | 2014-04-22 16:42:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-24 17:55:15 +0100 |
commit | b882c0f995d97e59190e71730c7e67c5e5289a94 (patch) | |
tree | ee2f5c89bff47dabbe3c2a30be8dc483d876105d | |
parent | 965770c0f7df3186421b7a89ae7c4a72e14990d5 (diff) | |
download | poky-b882c0f995d97e59190e71730c7e67c5e5289a94.tar.gz |
report-error: Add posting in the public note
(From OE-Core rev: c2eb5cd1aa4632f7ee8c261414e599dcb6f40a8b)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/report-error.bbclass | 1 | ||||
-rwxr-xr-x | scripts/send-error-report | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index 479b38deb0..15adc97b52 100644 --- a/meta/classes/report-error.bbclass +++ b/meta/classes/report-error.bbclass | |||
@@ -60,6 +60,7 @@ python errorreport_handler () { | |||
60 | filename = "error_report_" + e.data.getVar("BUILDNAME")+".txt" | 60 | filename = "error_report_" + e.data.getVar("BUILDNAME")+".txt" |
61 | datafile = errorreport_savedata(e, jsondata, filename) | 61 | datafile = errorreport_savedata(e, jsondata, filename) |
62 | 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)) | 62 | 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)) |
63 | 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.") | ||
63 | } | 64 | } |
64 | 65 | ||
65 | addhandler errorreport_handler | 66 | addhandler errorreport_handler |
diff --git a/scripts/send-error-report b/scripts/send-error-report index 3d1f7a4017..48d983bc0e 100755 --- a/scripts/send-error-report +++ b/scripts/send-error-report | |||
@@ -97,8 +97,9 @@ def sendData(json_file, server): | |||
97 | 97 | ||
98 | if __name__ == '__main__': | 98 | if __name__ == '__main__': |
99 | print ("\nSends an error report (if the report-error class was enabled) to a remote server.") | 99 | print ("\nSends an error report (if the report-error class was enabled) to a remote server.") |
100 | print("\nThis scripts sends the contents of the error to a public upstream server.") | ||
101 | print("\nPlease remove any identifying information before sending.") | ||
100 | if len(sys.argv) < 2: | 102 | if len(sys.argv) < 2: |
101 | print("\nThis scripts sends the contents of a file to an upstream server.") | ||
102 | print("\nUsage: send-error-report <error_fileName> [server]") | 103 | print("\nUsage: send-error-report <error_fileName> [server]") |
103 | print("\nIf this is the first when sending a report you'll be asked for your name and optionally your email address.") | 104 | print("\nIf this is the first when sending a report you'll be asked for your name and optionally your email address.") |
104 | print("They will be associated with your report.\n") | 105 | print("They will be associated with your report.\n") |