==> /var/log/retracer-amd64.log <==
2012-12-13 13:16:02,678:INFO:root:Processing 39f8843a-4527-11e2-90c4-fa163e402e99
Traceback (most recent call last):
File "/var/retracer/daisy/process_core.py", line 543, in <module>
main()
File "/var/retracer/daisy/process_core.py", line 540, in main
retracer.listen()
File "/var/retracer/daisy/process_core.py", line 143, in listen
self.run_forever(channel, self.callback, queue=retrace)
File "/var/retracer/daisy/process_core.py", line 156, in run_forever
channel.wait()
File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 97, in wait
return self.dispatch_method(method_sig, args, content)
File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 117, in dispatch_method
return amqp_method(self, args, content)
File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py", line 2060, in _basic_deliver
func(msg)
File "/var/retracer/daisy/process_core.py", line 283, in callback
path = write_s3_bucket_to_disk(self, oops_id)
NameError: global name 'write_s3_bucket_to_disk' is not defined
File "/var/retracer/daisy/process_core.py", line 283, in callback
path = self.write_s3_bucket_to_disk(oops_id)
File "/var/retracer/daisy/process_core.py", line 267, in write_s3_bucket_to_disk
key = bucket.get_key(msg.body)
NameError: global name 'msg' is not defined
This is less trivial, I'm not sure where to get msg from (from a 2 second look).
A visual inspection of the code structure looks good to me, though. It's good to keep both implementations side by side for a while.
When I run this, I get
==> /var/log/ retracer- amd64.log <== 678:INFO: root:Processing 39f8843a- 4527-11e2- 90c4-fa163e402e 99 daisy/process_ core.py" , line 543, in <module> daisy/process_ core.py" , line 540, in main listen( ) daisy/process_ core.py" , line 143, in listen run_forever( channel, self.callback, queue=retrace) daisy/process_ core.py" , line 156, in run_forever python2. 7/dist- packages/ amqplib/ client_ 0_8/abstract_ channel. py", line 97, in wait method( method_ sig, args, content) python2. 7/dist- packages/ amqplib/ client_ 0_8/abstract_ channel. py", line 117, in dispatch_method python2. 7/dist- packages/ amqplib/ client_ 0_8/channel. py", line 2060, in _basic_deliver daisy/process_ core.py" , line 283, in callback bucket_ to_disk( self, oops_id) s3_bucket_ to_disk' is not defined
2012-12-13 13:16:02,
Traceback (most recent call last):
File "/var/retracer/
main()
File "/var/retracer/
retracer.
File "/var/retracer/
self.
File "/var/retracer/
channel.wait()
File "/usr/lib/
return self.dispatch_
File "/usr/lib/
return amqp_method(self, args, content)
File "/usr/lib/
func(msg)
File "/var/retracer/
path = write_s3_
NameError: global name 'write_
I easily get around that with
- path = write_s3_ bucket_ to_disk( self, oops_id) s3_bucket_ to_disk( oops_id)
+ path = self.write_
but then it crashes on
File "/var/retracer/ daisy/process_ core.py" , line 283, in callback s3_bucket_ to_disk( oops_id) daisy/process_ core.py" , line 267, in write_s3_ bucket_ to_disk get_key( msg.body)
path = self.write_
File "/var/retracer/
key = bucket.
NameError: global name 'msg' is not defined
This is less trivial, I'm not sure where to get msg from (from a 2 second look).
A visual inspection of the code structure looks good to me, though. It's good to keep both implementations side by side for a while.