django-timelog
django-timelog copied to clipboard
error
File "manage.py", line 14, in
Verify the logfile is being written in the expected format, something like: 2012-07-24 11:59:48,690 GET "/" (200) 1.36
I get exactly the same error and the format is correct as in @kkumler comment.
I've got a similar error (IndexError: list index out of range
without stacktrace after "pip install").
Resolution I found for my case requires to extend the set of request types with PATCH
keyword.
So finally I have:
PATTERN = r"""^([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9:]{8},[0-9]{3}) (GET|POST|PUT|DELETE|HEAD|PATCH) "(.*)" \((.*)\) (.*)"""
See original pattern here