On 11/22/2013 01:56 PM, Pavel Moravec wrote:
Hi all, playing with AMQP 1.0 in C++ broker and client, I realized I can't debug the broker like I was used in 0.10 protocol version, as:1) broker traces contain logs like: 2013-11-22 12:44:19 [Broker] trace qpid.127.0.0.1:5672-127.0.0.1:58187 process() 2013-11-22 12:44:19 [Network] trace qpid.127.0.0.1:5672-127.0.0.1:58187 canEncode(): 0 2013-11-22 12:44:19 [Broker] trace qpid.127.0.0.1:5672-127.0.0.1:58187 decode(30) 2013-11-22 12:44:19 [Network] debug qpid.127.0.0.1:5672-127.0.0.1:58187 decoded 30 bytes from 30 2013-11-22 12:44:19 [Broker] trace qpid.127.0.0.1:5672-127.0.0.1:58187 process() 2013-11-22 12:44:19 [Model] debug qpid.127.0.0.1:5672-127.0.0.1:58187 session begun 2013-11-22 12:44:19 [Model] trace Mgmt create session. id:0x7f5c480182a0 where I lack information provided for 0.10 connections like: 2013-11-22 12:25:51 [Protocol] trace RECV [qpid.127.0.0.1:5672-127.0.0.1:57185]: Frame[BEbe; channel=0; {ConnectionStartOkBody: client-properties={qpid.client_pid:F4:int32(3641),qpid.client_ppid:F4:int32(3436),qpid.client_process:V2:12:str16(qpid-receive),qpid.session_flow:F4:int32(1)}; mechanism=ANONYMOUS; response=xxxxxx; locale=en_US; }] or: 2013-11-22 12:25:51 [Protocol] trace SENT [qpid.127.0.0.1:5672-127.0.0.1:57185]: Frame[BEbe; channel=0; {ConnectionTuneBody: channel-max=32767; max-frame-size=65535; heartbeat-min=0; heartbeat-max=120; }] That makes qpidd traces for AMQP 1.0 quite useless, if I need to check protocol specific parameters.
You can get proton to emit equivalent logging by specifying --trace+:Protocol. However proton just logs to the console, so you can't use --log-to-file or similar.
2) there is apparently no AMQP 1.0 wireshark dissector, hence taking tcpdump and decoding it does not help. Is there a way to decode/debug AMQP 1.0 communication? As the current state prevents any in-depth investigation..
A wireshark decoder would be very useful, but at present I just rely on the proton output.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
