savelog and error.log handling
Juergen Kahnert
Juergen.Kahnert at DESY.de
Tue Jun 12 10:28:32 CEST 2007
HI,
anyone ever implemented a handy way to deal with the error.log?
This "globalignorepatterns" in savelog.LAST.source won't fit for
anything and editing "myignorepatterns" in the same file won't do it
either.
For example this part out of software.log:
Setting up a2ps (4.13b.dfsg.1-1) ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the a2ps package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
ERROR: for details.
dpkg: error processing a2ps (--configure):
subprocess post-installation script returned error exit status 2
Besides the question how this went through the QA of Debian, I would
like to have a multi-line-ignore depending on classes.
Just adding a line like this:
subprocess post-installation script returned error exit status 2
to "myignorepatterns" won't help at all, because I usually want to see
such a kind of error. Just not the combination of emacsen-common and
a2ps.
We made a brainstorming session how to handle this with the following
result:
* add a new subdirectory called "safelog"
* create class depending files similar to those in package_config, e.g.:
safelog/DEFAULT:
SAVELOG include
error
fail
warn
bad
no space
...
SAVELOG exclude
[a-z]\+\.log:#
libroxen-errormessage
liberror-perl
libgpg-error0
^fstab.\+errors=remount
[RT]X packets:
WARNING: unexpected IO-APIC
warned about = ( )
daemon.warn
kern.warn
rw,errors=
Expect some cache
no error
...
SAVELOG mexclude DESKTOP
Setting up a2ps (4.13b.dfsg.1-1) ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the a2ps package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
ERROR: for details.
dpkg: error processing a2ps (--configure):
subprocess post-installation script returned error exit status 2
* replace hooks/savelog.LAST.source with a script which is able to deal
with this kind of config
The config should be nearly self explaining. Anyway, here a short
description.
Write all single line regex below "SAVELOG include". This are in general
the lines from "globalerrorpatterns".
Same for "SAVELOG exclude" which keeps the lines from globalignorepatterns.
This "mexclude" keyword should represent "multi line excludes". So you
need an extra "mexclude" block for every "multi line regex" or we use
empty lines as a delimiter between multi line regex blocks.
Optional classes may be given with the same effect as in package_config.
Anyone having something similar and like to share it? Or someone likes
to implement it?
Or any better ideas, improvements, suggestions?
If every question is answered with "no", I'll implement it.
Regards
Jürgen Kahnert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3289 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20070612/d4646f39/attachment.bin
More information about the linux-fai-devel
mailing list