Browse Source

Fix variable size timestamp for OS LogEntry

Miguel Angel Ajo 3 years ago
parent
commit
f39e434d99
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      oslogmerger/oslogmerger.py

+ 2
- 1
oslogmerger/oslogmerger.py View File

@@ -9,7 +9,7 @@ import time
9 9
 import urllib2
10 10
 
11 11
 
12
-__version__ = '1.0.5'
12
+__version__ = '1.0.6'
13 13
 
14 14
 EXTRALINES_PADDING = " " * 40
15 15
 CACHE_DIR = "%s/oslogmerger-cache/" % tempfile.gettempdir()
@@ -102,6 +102,7 @@ class LogEntry(object):
102 102
                                     len(self._date_parse_msg))
103 103
             dt = datetime.strptime(line[:prepared_date_length],
104 104
                                    self.date_format)
105
+            self._date_length = prepared_date_length
105 106
         return dt
106 107
 
107 108
     def _calculate_date_length(self):

Loading…
Cancel
Save