如何從boto中獲得有用的診斷信息?我所看到的只是無用的「400壞請求」。我認識到boto只是傳遞了底層API可用的東西,但肯定有某種方式可以獲得比「錯誤請求」更有用的東西。如何從boto獲得有用的診斷信息?
Traceback (most recent call last):
File "./mongo_pulldown.py", line 153, in <module>
main()
File "./mongo_pulldown.py", line 24, in main
print "snap = %r" % snap
File "./mongo_pulldown.py", line 149, in __exit__
self.connection.delete_volume(self.volume.id)
File "/home/roy/deploy/current/python/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 1507, in delete_volume
return self.get_status('DeleteVolume', params, verb='POST')
File "/home/roy/deploy/current/python/local/lib/python2.7/site-packages/boto/connection.py", line 985, in get_status
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
'import boto; boto.set_stream_logger('boto')'會打印json結果,包括控制檯遇到的任何錯誤。 – ecoe