Long lists of arguments were causing ticket body to be too long.
Signed-off-by: Richard Marko <rmarko(a)redhat.com>
---
pyfaf/bugzilla.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pyfaf/bugzilla.py b/pyfaf/bugzilla.py
index 9f6a9f7..728f4fc 100644
--- a/pyfaf/bugzilla.py
+++ b/pyfaf/bugzilla.py
@@ -775,15 +775,22 @@ class Bugzilla(object):
our_frames = []
for position, frame in enumerate(frames):
more = ''
+ name = frame.name
+
+ # strip arguments in case of c++ function names containing
+ # long lists of them
+ if '(' in name:
+ name = name.split('(')[0]
+
if frame.source_path and frame.line_num:
more = '{0}:{1}'.format(frame.source_path, frame.line_num)
if report.type == 'PYTHON':
- our_frames.append((position, frame.name,
+ our_frames.append((position, name,
'{0}:{1}'.format(frame.source_path,
frame.line_num)))
else:
- our_frames.append((position, frame.name, frame.path, more))
+ our_frames.append((position, name, frame.path, more))
data['backtrace'] = pyfaf.support.as_table(
backtrace_header, our_frames,
--
1.8.1.4
Show replies by date