ソースを参照

Update timestamps in energymech-parser

Torbjorn Svensson 20 年 前
コミット
1bc9f72828
2 ファイル変更4 行追加3 行削除
  1. 1 0
      docs/Changelog
  2. 3 3
      modules/Pisg/Parser/Format/energymech.pm

+ 1 - 0
docs/Changelog

@@ -40,6 +40,7 @@ pisg (0.69) - ??
      + Add support for both the 1.0.5(stable) and the 1.1.0(devel) log format 
      + Add support for both the 1.0.5(stable) and the 1.1.0(devel) log format 
        of dircproxy.
        of dircproxy.
      + Fix parser for psyBNC (SF #1490957).
      + Fix parser for psyBNC (SF #1490957).
+     + Update energymech to support new timestamp format.
    Language Updates:
    Language Updates:
      + Portuguese: completed by DarkForce72.
      + Portuguese: completed by DarkForce72.
      + Portuguese/Brazil: completed by Guilherme Barile.
      + Portuguese/Brazil: completed by Guilherme Barile.

+ 3 - 3
modules/Pisg/Parser/Format/energymech.pm

@@ -10,9 +10,9 @@ sub new
     my ($type, %args) = @_;
     my ($type, %args) = @_;
     my $self = {
     my $self = {
         cfg => $args{cfg},
         cfg => $args{cfg},
-        normalline => '^\[(\d+):\d+[^ ]+ <([^>]+)> (.*)$',
-        actionline => '^\[(\d+):\d+[^ ]+ \* (\S+) (.*)$',
-        thirdline  => '^\[(\d+):(\d+)[^ ]+ \*{3} (.+)$'
+        normalline => '^\[[^\]]*(\d+):\d+:\d+\] <([^>]+)> (.*)$',
+        actionline => '^\[[^\]]*(\d+):\d+:\d+\] \* (\S+) (.*)$',
+        thirdline  => '^\[[^\]]*(\d+):(\d+):\d+\] \*{3} (.+)$'
     };
     };
 
 
     bless($self, $type);
     bless($self, $type);