launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #05346
[Merge] lp:~lifeless/python-oops-tools/amqp-polish into lp:python-oops-tools
Robert Collins has proposed merging lp:~lifeless/python-oops-tools/amqp-polish into lp:python-oops-tools.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
Related bugs:
Bug #884569 in python-oops-tools: "confusion when amqp2disk buffers in -v mode "
https://bugs.launchpad.net/python-oops-tools/+bug/884569
Bug #884571 in python-oops-tools: "amqp2disk oopses with lower case hashes are not accessible"
https://bugs.launchpad.net/python-oops-tools/+bug/884571
For more details, see:
https://code.launchpad.net/~lifeless/python-oops-tools/amqp-polish/+merge/80864
Polish to make the amqp oops experience more reliable and pleasant.
--
https://code.launchpad.net/~lifeless/python-oops-tools/amqp-polish/+merge/80864
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~lifeless/python-oops-tools/amqp-polish into lp:python-oops-tools.
=== modified file 'src/oopstools/NEWS.txt'
--- src/oopstools/NEWS.txt 2011-10-31 02:07:57 +0000
+++ src/oopstools/NEWS.txt 2011-11-01 03:09:25 +0000
@@ -5,6 +5,13 @@
NEXT
====
+* Flush stdout when logging an OOPS receipt in amqp2disk.
+ (Robert Collins, #884569)
+
+* Force received OOPS ids to uppercase in amqp2disk to fit in with the UI
+ - otherwise they cannot be accessed.
+ (Robert Collins, #884571)
+
0.6.1
=====
=== modified file 'src/oopstools/scripts/amqp2disk.py'
--- src/oopstools/scripts/amqp2disk.py 2011-10-18 14:18:51 +0000
+++ src/oopstools/scripts/amqp2disk.py 2011-11-01 03:09:25 +0000
@@ -106,6 +106,7 @@
if options.verbose:
def print_oops(report):
print ("Received %s" % report['id'])
+ sys.stdout.flush()
config.publishers.append(print_oops)
receiver = oops_amqp.Receiver(config, factory, options.queue)
try:
@@ -119,6 +120,8 @@
# the first publisher will either inherit or assign, so this should be
# impossible.
assert report['id'] is not None
+ # Fit in with the upper-case assumption in oops-tools.
+ report['id'] = report['id'].upper()
# Some fallback methods could lead to duplicate paths into the DB: exit
# early if the OOPS is already loaded.
try: