[gnome-continuous-yocto/gnomeostree-3.28-rocko: 272/8267] report-error: Replace the build directory path in the error text
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 272/8267] report-error: Replace the build directory path in the error text
- Date: Sat, 16 Dec 2017 20:11:40 +0000 (UTC)
commit 97531efe4d37c25143f46f2761a15ee5324952d2
Author: Michael Wood <michael g wood intel com>
Date: Thu May 12 14:31:58 2016 +0100
report-error: Replace the build directory path in the error text
Replace the TOPDIR in the output error file so that the error report once
submitted can then be more easily matched to find duplicate error
reports. This also reduces the need to manually redact any information that
might be in the error log path such as hostnames or home directories.
(From OE-Core rev: ffdc9550c109facf3a3ebdf90c1ba8153cac90dd)
Signed-off-by: Michael Wood <michael g wood intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/classes/report-error.bbclass | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 82b5bcd..20d2bef 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -58,6 +58,11 @@ python errorreport_handler () {
try:
logFile = codecs.open(log, 'r', 'utf-8')
logdata = logFile.read()
+
+ topdir = e.data.getVar('TOPDIR', True)
+ if topdir:
+ logdata = logdata.replace(topdir, ' ')
+
logFile.close()
except:
logdata = "Unable to read log file"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]