1 |
Dnia 2013-09-04, o godz. 11:24:22 |
2 |
Tom Wijsman <TomWij@g.o> napisał(a): |
3 |
|
4 |
> On Wed, 4 Sep 2013 09:17:11 +0200 |
5 |
> Michał Górny <mgorny@g.o> wrote: |
6 |
> |
7 |
> > Dnia 2013-09-03, o godz. 18:57:12 |
8 |
> > "Walter Dnes" <waltdnes@××××××××.org> napisał(a): |
9 |
> > |
10 |
> > > On Tue, Sep 03, 2013 at 10:15:39PM +0200, Tom Wijsman wrote |
11 |
> > > |
12 |
> > > > That is not what this is about, this is about having escape |
13 |
> > > > sequences in build logs obtained from Bugzilla; because, they aid |
14 |
> > > > in skimming through logs (until we implement the feature I asked |
15 |
> > > > for in subject). |
16 |
> > > |
17 |
> > > "The road to binary syslog files is paved with good intentions", |
18 |
> > > or something like that. Question... why does it have to be escape |
19 |
> > > sequences? Can't it be readable plain text? E.g. something like... |
20 |
> > > |
21 |
> > > //STDERR.OUT.START |
22 |
> > > foo |
23 |
> > > bar |
24 |
> > > blah blah blah |
25 |
> > > //STDERR.OUT.END |
26 |
> > > |
27 |
> > > This would be easy to grep and/or parse in bash. |
28 |
> > |
29 |
> > Especially if one is interspersed with the other. I suggest trying |
30 |
> > first, then suggesting it to others. |
31 |
> |
32 |
> Definitely do not want them on their own line; instead something like |
33 |
> |
34 |
> OUT:make:1000: ... |
35 |
> ERR:gcc:1001: ... |
36 |
> ERR:gcc:1001: ... |
37 |
> ERR:gcc:1001: ... |
38 |
> ERR:gcc:1001: ... |
39 |
> ERR:make:1000: *** [...] Error 1 |
40 |
> ERR:make:1000: make[2]: *** Waiting for unfinished jobs.... |
41 |
> |
42 |
> If you then grep the last non-make and non-portage STDERR, you simply |
43 |
> get just the gcc lines you actually want. From there you can grep the |
44 |
> lines around it for context. |
45 |
|
46 |
And how are you going to implement this? I doubt that fd/vt input has |
47 |
any sort of 'writing process id' indicator. |
48 |
|
49 |
-- |
50 |
Best regards, |
51 |
Michał Górny |