logengine crash on log messages with years in their timestamps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
The logengine crashes when attempting to parse a log message containing a year in its origin timestamp. This results in a truncated log file and lots of discarded log messages.
The traceback, provided by Ronny Raudstein, is as follows:
Traceback (most recent call last):
File "logengine.py", line 298, in ?
message = createMessage(line)
File "logengine.py", line 123, in createMessage
oritime = DateTime.
TypeError: an integer is required
An example log message that will crash it:
Mar 20 10:27:26 sw_1 607977: Mar 20 2009 10:20:06: %SEC-6-
Reference this nav-users thread: https:/
description: | updated |
Changed in nav: | |
status: | Fix Committed → Fix Released |
Working on a series of patches for this.
1. The code sucks, so I'm slightly refactoring it to make it more legible.
2. Add error handling for situations like this.
3. Support years in timestamps