Re: [libvirt] [PATCH] Fix flaw in detecting log format

2013-10-11 Thread Eric Blake
On 10/11/2013 10:14 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The log message regex has been > > [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\+[0-9]{4}: > [0-9]+: debug|info|warning|error : > > > Which is clearly not what it should have done. This caus

[libvirt] [PATCH] Fix flaw in detecting log format

2013-10-11 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The log message regex has been [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\+[0-9]{4}: [0-9]+: debug|info|warning|error : The precedence of '|' is high though, so this is equivalent to matching [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]