mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0ba9ce24d5
commit
97531efe4d
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user