Closed rk295 closed 8 years ago
I just ran this on the logs I have on my server and the following trackback was produced:
1:master* ❯ mclogalyzer /opt/msm/servers/trin/logs/ stats.html Parsing log 2015-10-01-1.log.gz (2015-10-01) ... Parsing log 2015-10-01-2.log.gz (2015-10-01) ... Parsing log 2015-10-01-3.log.gz (2015-10-01) ... Parsing log 2015-10-02-1.log.gz (2015-10-02) ... Parsing log 2015-10-03-1.log.gz (2015-10-03) ... Parsing log 2015-10-04-1.log.gz (2015-10-04) ... Parsing log 2015-10-05-1.log.gz (2015-10-05) ... Parsing log 2015-10-06-1.log.gz (2015-10-06) ... Parsing log 2015-10-07-1.log.gz (2015-10-07) ... Parsing log 2015-10-08-1.log.gz (2015-10-08) ... Parsing log 2015-10-09-1.log.gz (2015-10-09) ... Parsing log 2015-10-10-1.log.gz (2015-10-10) ... Parsing log 2015-10-11-1.log.gz (2015-10-11) ... Parsing log 2015-10-12-1.log.gz (2015-10-12) ... Parsing log 2015-10-13-1.log.gz (2015-10-13) ... Parsing log 2015-10-14-1.log.gz (2015-10-14) ... Parsing log 2015-10-15-1.log.gz (2015-10-15) ... Traceback (most recent call last): File "/u01/home/robin/.venvs/mclog/bin/mclogalyzer", line 7, in <module> mclogalyzer.main() File "/u01/home/robin/.venvs/mclog/local/lib/python2.7/site-packages/mclogalyzer/mclogalyzer.py", line 535, in main users, server, chats = parse_logs(args["logdir"], since, whitelist_users) File "/u01/home/robin/.venvs/mclog/local/lib/python2.7/site-packages/mclogalyzer/mclogalyzer.py", line 465, in parse_logs thisChatDay._chat.append(ChatLog(date, username, chat_message)) File "/u01/home/robin/.venvs/mclog/local/lib/python2.7/site-packages/mclogalyzer/mclogalyzer.py", line 212, in __init__ self._time = str("%02d:%02d:%02d"%(timestamp.hour,timestamp.minute,timestamp.second)) AttributeError: 'NoneType' object has no attribute 'hour'
I just ran this on the logs I have on my server and the following trackback was produced: