prositen/modsecurity-grep

Problem with --show-time

Closed this issue · 0 comments

Traceback (most recent call last):
File "./greplog.py", line 690, in
main(sys.argv[1:])
File "./greplog.py", line 681, in main
for x in greplog.parse_line(line.strip(), fileinput.filelineno()):
File "./greplog.py", line 652, in parse_line
for x in self.message.handle():
File "./greplog.py", line 519, in handle
yield self.start()
File "./greplog.py", line 502, in start
timestamp=self.parts[LogParts.STARTED].format_timestamp() if self.args.show_timestamp else "",
File "./greplog.py", line 308, in format_timestamp
return '{date:s} {timestamp:s}'.format(date=self.date.strftime('%Y-%m-%d'),
AttributeError: 'NoneType' object has no attribute 'strftime'