From babe25240b8866aff34d9fd240670a7876257c86 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Wed, 25 Nov 2009 23:14:15 +0000 Subject: [PATCH] Adjust regex Match "Archive maintenance timestamp" only if present at the beginning of the row, thus ignoring bogus messages eventually registered in the logs. Signed-off-by: Luca Falavigna --- tools/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/logs.py b/tools/logs.py index c4eb6bea..6db78d99 100755 --- a/tools/logs.py +++ b/tools/logs.py @@ -46,7 +46,7 @@ if m: raise Exception("I don't like command line arguments including char '%s'"%m.group(0)) if args: - for l in os.popen('bzgrep -H "Archive maintenance timestamp" "'+'" "'.join(args)+'"'): + for l in os.popen('bzgrep -H "^Archive maintenance timestamp" "'+'" "'.join(args)+'"'): m = LINE.match(l) if not m: raise Exception("woops '%s'"%l) -- 2.39.2