Merge lp:~lifeless/python-oops-tools/amqp-polish into lp:python-oops-tools

Proposed by Robert Collins
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: 9
Proposed branch: lp:~lifeless/python-oops-tools/amqp-polish
Merge into: lp:python-oops-tools
Diff against target: 38 lines (+10/-0)
2 files modified
src/oopstools/NEWS.txt (+7/-0)
src/oopstools/scripts/amqp2disk.py (+3/-0)
To merge this branch: bzr merge lp:~lifeless/python-oops-tools/amqp-polish
Reviewer Review Type Date Requested Status
Steve Kowalik (community) code Approve
Review via email: mp+80864@code.launchpad.net

Commit message

Polish to make the amqp oops experience more reliable and pleasant.

Description of the change

Polish to make the amqp oops experience more reliable and pleasant.

To post a comment you must log in.
Revision history for this message
Steve Kowalik (stevenk) :
review: Approve (code)
9. By Robert Collins

Polish to make the amqp oops experience more reliable and pleasant.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/oopstools/NEWS.txt'
2--- src/oopstools/NEWS.txt 2011-10-31 02:07:57 +0000
3+++ src/oopstools/NEWS.txt 2011-11-01 03:09:25 +0000
4@@ -5,6 +5,13 @@
5 NEXT
6 ====
7
8+* Flush stdout when logging an OOPS receipt in amqp2disk.
9+ (Robert Collins, #884569)
10+
11+* Force received OOPS ids to uppercase in amqp2disk to fit in with the UI
12+ - otherwise they cannot be accessed.
13+ (Robert Collins, #884571)
14+
15 0.6.1
16 =====
17
18
19=== modified file 'src/oopstools/scripts/amqp2disk.py'
20--- src/oopstools/scripts/amqp2disk.py 2011-10-18 14:18:51 +0000
21+++ src/oopstools/scripts/amqp2disk.py 2011-11-01 03:09:25 +0000
22@@ -106,6 +106,7 @@
23 if options.verbose:
24 def print_oops(report):
25 print ("Received %s" % report['id'])
26+ sys.stdout.flush()
27 config.publishers.append(print_oops)
28 receiver = oops_amqp.Receiver(config, factory, options.queue)
29 try:
30@@ -119,6 +120,8 @@
31 # the first publisher will either inherit or assign, so this should be
32 # impossible.
33 assert report['id'] is not None
34+ # Fit in with the upper-case assumption in oops-tools.
35+ report['id'] = report['id'].upper()
36 # Some fallback methods could lead to duplicate paths into the DB: exit
37 # early if the OOPS is already loaded.
38 try:

Subscribers

People subscribed via source and target branches

to all changes: