Merge lp:~stevenk/launchpad/force-checkwatches-production into lp:launchpad

Proposed by Steve Kowalik
Status: Merged
Approved by: Steve Kowalik
Approved revision: no longer in the source branch.
Merged at revision: 14541
Proposed branch: lp:~stevenk/launchpad/force-checkwatches-production
Merge into: lp:launchpad
Diff against target: 25 lines (+2/-7)
1 file modified
lib/lp/bugs/scripts/checkwatches/base.py (+2/-7)
To merge this branch: bzr merge lp:~stevenk/launchpad/force-checkwatches-production
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+86187@code.launchpad.net

Commit message

[r=wgrant][bug=906151] Remove checkwatches special error reporting so that it uses production to write out oopsii.

Description of the change

Remove checkwatches special error reporting so that it uses production to write out oopsii.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/bugs/scripts/checkwatches/base.py'
--- lib/lp/bugs/scripts/checkwatches/base.py 2011-03-11 03:19:07 +0000
+++ lib/lp/bugs/scripts/checkwatches/base.py 2011-12-19 04:39:24 +0000
@@ -39,12 +39,6 @@
39MAX_SQL_STATEMENTS_LOGGED = 1000039MAX_SQL_STATEMENTS_LOGGED = 10000
4040
4141
42class CheckWatchesErrorUtility(ErrorReportingUtility):
43 """An error utility that for the checkwatches process."""
44
45 _default_config_section = 'checkwatches'
46
47
48def report_oops(message=None, properties=None, info=None,42def report_oops(message=None, properties=None, info=None,
49 transaction_manager=None):43 transaction_manager=None):
50 """Record an oops for the current exception.44 """Record an oops for the current exception.
@@ -91,7 +85,8 @@
9185
92 # Create the dummy request object.86 # Create the dummy request object.
93 request = ScriptRequest(properties, url)87 request = ScriptRequest(properties, url)
94 error_utility = CheckWatchesErrorUtility()88 error_utility = ErrorReportingUtility()
89 error_utility.configure(section_name='checkwatches')
95 error_utility.raising(info, request)90 error_utility.raising(info, request)
96 return request91 return request
9792