validation
Tom Metro <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
MrC wrote: > Tom Metro wrote: >> The original code appeared to be somewhat sloppy in the validation it >> was performing. If you consider this RE: >> >> s/^... .. ..:..:.. [^ ]* [^\[:]*(\[\d*\])?: // > > I entirely agree - the RE's should be tightened up and validation should > occur where it matters. The question this leads to is what do you do about a validation failure at this stage? I haven't seen any examples of how you report errors from the shared filters. Do you just write an error to STDERR and let cron catch it? Does logwatch do anything special with STDERR from the filters? -Tom -- Tom Metro Venture Logic, Newton, MA, USA "Enterprise solutions through open source." Professional Profile: http://tmetro.venturelogic.com/