10

boto から有用な診断を取得するにはどうすればよいですか? 私が得たように見えるのは、腹立たしいほど役に立たない「400 Bad Request」だけです。boto は、基礎となる API が利用可能にするものを渡しているだけだと認識していますが、「Bad Request」よりも便利なものを取得する方法があることは確かです。

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
4

2 に答える 2

8

boto.cfgファイルをより詳細に構成できます。

[Boto]
debug = 2

debug: boto ライブラリによって出力されるデバッグ メッセージのレベルを制御します。次の値が定義されています。

0 - no debug messages are printed
1 - basic debug messages from boto are printed
2 - all boto debugging messages plus request/response messages from httplib
于 2013-06-21T06:59:25.800 に答える