Projet

Général

Profil

0001-misc-cut-locals-displayed-in-traces-to-10000-charact.patch

Frédéric Péters, 07 novembre 2015 09:08

Télécharger (1,11 ko)

Voir les différences:

Subject: [PATCH] misc: cut locals displayed in traces to 10000 characters
 (#8904)

 wcs/qommon/publisher.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
wcs/qommon/publisher.py
210 210
                for key, value in locals:
211 211
                    print >>error_file, "     %s =" % key,
212 212
                    try:
213
                        print >>error_file, repr(value),
213
                        repr_value = repr(value)
214
                        if len(repr_value) > 10000:
215
                            repr_value = repr_value[:10000] + ' [...]'
216
                        print >>error_file, repr_value,
214 217
                    except:
215 218
                        print >>error_file, "<ERROR WHILE PRINTING VALUE>",
216 219
                    print >>error_file
217
-