Bug 799029 - [RFE] Make console.log even more readable remove whole ansi sequences
Summary: [RFE] Make console.log even more readable remove whole ansi sequences
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: 0.8
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Bill Peck
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-01 15:57 UTC by Marian Ganisin
Modified: 2019-05-22 13:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-20 00:38:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Ganisin 2012-03-01 15:57:49 UTC
Removal of 'escape characters' doesn't help with reading of console.log too much. It would be much better to remove/replace whole control sequences.

For example this dirty sequence of regular expressions makes console.log provided by beaker (with escape characters already removed) much more readable:

sed -e 's/??\+//g' -e 's/\[[0-9]\+;\?[0-9]*[AHBKC]\?//g' -e 's/ \{10,\}/\n/g' console.log

It could be much easier with 'escape' included, regexp could match exact syntax of sequence. Server-side can handle it.

Comment 1 Petr Šplíchal 2012-07-02 14:19:33 UTC
That is a very good idea as the mega-long lines actually "hide"
the real cause of installation failures. For a nice example see:

http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2012/06/2552/255267/543816/console.log

The implementation should be straightforward. Could we get this
fixed any time soon?

Comment 2 Bill Peck 2012-07-06 17:10:02 UTC
http://gerrit.beaker-project.org/#/c/1184/

Comment 5 Dan Callaghan 2012-07-20 00:38:26 UTC
Beaker 0.9.1 has been released.


Note You need to log in before you can comment on or make changes to this bug.