Daniel P. Berrange
5787f0b95e
Fix flaw in detecting log format
...
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]{2}\.[0-9]{3}\+[0-9]{4}: [0-9]+: debug
Or
info
Or
warning
Or
error :
Which is clearly not what it should have done. This caused the code to
skip over things which are not log messages. The solution is to simply
add brackets.
A test case is also added to validate correctness.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-10-14 10:31:01 +01:00
..
2013-07-01 14:30:42 +02:00
2013-05-06 14:01:08 -06:00
2013-09-05 12:31:10 +01:00
2013-04-15 17:35:31 +01:00
2013-04-25 13:05:10 +02:00
2013-05-13 17:24:18 +08:00
2013-10-09 17:44:45 +02:00
2013-10-09 17:44:45 +02:00
2013-09-17 17:47:33 -06:00
2013-09-17 17:47:33 -06:00
2013-09-17 17:47:33 -06:00
2013-08-28 08:05:46 +02:00
2013-08-28 08:05:46 +02:00
2013-06-26 14:10:56 -04:00
2013-10-03 15:52:06 +02:00
2013-09-02 14:45:38 +02:00
2013-08-26 16:09:56 +02:00
2013-10-08 17:41:51 -04:00
2013-08-27 17:42:29 +02:00
2013-09-02 16:53:39 -04:00
2013-08-20 10:46:58 -06:00
2013-05-17 08:33:22 +02:00
2013-07-16 12:16:37 +02:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-08-27 12:45:58 +02:00
2013-07-25 13:26:41 +02:00
2013-07-25 13:26:41 +02:00
2013-09-30 16:58:37 -05:00
2013-09-17 14:10:41 -05:00
2013-09-17 14:10:41 -05:00
2013-08-01 17:04:28 -04:00
2013-07-11 14:18:11 -04:00
2013-10-08 12:39:30 +01:00
2013-08-22 11:38:36 +02:00
2013-10-08 12:39:30 +01:00
2013-10-09 17:44:45 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-07-10 17:40:13 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-09 17:44:45 +02:00
2013-10-14 10:31:01 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-04-24 10:59:53 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-11 10:24:48 +02:00
2013-10-08 12:39:30 +01:00
2013-10-03 15:26:09 +02:00
2013-10-01 10:48:47 +02:00
2013-10-10 12:00:56 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-09-17 16:45:53 +02:00
2013-08-23 15:23:44 -06:00
2013-10-07 08:40:30 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-05-21 09:22:21 -04:00
2013-07-29 13:09:39 -06:00
2013-10-11 11:05:06 +02:00
2013-07-29 13:09:39 -06:00
2013-10-08 12:39:30 +01:00
2013-05-10 08:52:43 -04:00
2013-05-17 08:33:22 +02:00
2013-10-08 12:39:30 +01:00
2013-05-17 08:35:08 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-07-10 11:07:31 +02:00
2013-09-13 10:25:56 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-04-04 22:42:39 +02:00
2013-09-02 16:53:39 -04:00
2013-05-31 11:35:34 -06:00
2013-04-04 22:42:39 +02:00
2013-04-04 22:42:39 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-09-12 11:32:36 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-14 10:31:01 +01:00
2013-10-08 12:39:30 +01:00
2013-09-24 09:37:26 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-08-09 11:54:41 +01:00
2013-08-09 11:54:41 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-08-12 18:47:56 +02:00
2013-09-13 10:25:56 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-09-20 12:38:24 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00