Merge lp://staging/~gary/launchpad/bug856048 into lp://staging/launchpad

Proposed by Gary Poster
Status: Merged
Approved by: Gary Poster
Approved revision: no longer in the source branch.
Merged at revision: 14016
Proposed branch: lp://staging/~gary/launchpad/bug856048
Merge into: lp://staging/launchpad
Diff against target: 392 lines (+74/-102)
6 files modified
lib/canonical/launchpad/webapp/adapter.py (+3/-26)
lib/canonical/launchpad/webapp/tests/test_statementtracer.py (+23/-18)
lib/lp/bugs/browser/tests/test_expose.py (+7/-7)
lib/lp/bugs/model/tests/test_personsubscriptioninfo.py (+10/-8)
lib/lp/bugs/tests/test_duplicate_handling.py (+1/-1)
lib/lp/testing/__init__.py (+30/-42)
To merge this branch: bzr merge lp://staging/~gary/launchpad/bug856048
Reviewer Review Type Date Requested Status
Gavin Panella (community) code Approve
Raphaël Badin (community) code* Approve
Review via email: mp+76597@code.staging.launchpad.net

Commit message

[r=allenap,rvb][bug=856048][no-qa] Merge SQLLogger and StormStatementRecorder.

Description of the change

Merge SQLLogger and StormStatementRecorder.

Per a comment from Robert, I'm getting rid of my recently introduced SQLLogger by merging it with StormStatementRecorder (which I had forgotten about and not found again). This meant slightly adjusting a few tests (which meant addressing a few pieces of unrelated lint in these files).

The new StormStatementRecorder is now simpler and has a few more features. In particular:

 * It collects accurate timings and database names.
 * It can collect tracebacks never (default), always or conditionally.
 * printing it gives you a view of what happened, including any gathered tracebacks, making it useful for interactive data-gathering work.

Lint is happy.

Thank you

Gary

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) wrote :

Hi Gary,

    This branch looks good ((+74/-102) really good I should say). Thanks for doing this and simplifying our arsenal to analyse sql statements.

review: Approve (code*)
Revision history for this message
Gavin Panella (allenap) wrote :

+1, I totally agree with Raphaël :)

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.