pageperformancereport doesn't handle apache timestamps with []

Bug #1049049 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Developer Utilities
Invalid
Critical
Corey Goldberg

Bug Description

e.g.

"""91.189.89.28 login.launchpad.net - [08/Sep/2012:23:08:53 +0000] "GET / HTTP/1.1" 200 657 "-" "python-openid/2.2.5-fix1034376 (linux2) Python-urllib/2.6" 10072"""

Fails, due to the code not handling the [] around the timestamp.

Changed in lp-dev-utils:
assignee: nobody → Corey Goldberg (coreygoldberg)
Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

I can't reproduce locally.

are you using the correct ini file in lp:lp-dev-utils?
"page-perf_acccess.ini" (extra "c" in access, typo?)

however,
it chokes on that line if you aren't specifying an ini file with the following section:

[parser]
log_format=access

for example, using the default ini, it would choke on that line:

cgoldberg@zerodown:~/code/lp-dev-utils$ python page-performance-report.py access_sample.log -c page-perf_acccess.ini
cgoldberg@zerodown:~/code/lp-dev-utils$ python page-performance-report.py access_sample.log
ERROR:root:Malformed line '91.189.89.28 login.launchpad.net - [08/Sep/2012:23:08:53 +0000] "GET / HTTP/1.1" 200 657 "-" "python-openid/2.2.5-fix1034376 (linux2) Python-urllib/2.6" 10072' (Invalid timestamp '- [08/Sep/2012:23:08:53')
cgoldberg@zerodown:~/code/lp-dev-utils$

-Corey

Revision history for this message
Robert Collins (lifeless) wrote :

I failed to pass the config variable from the shell script. ENOPROBLEM.

Changed in lp-dev-utils:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.