Skip to content

Instantly share code, notes, and snippets.

@digitalasia
Created January 12, 2014 10:18
Show Gist options
  • Save digitalasia/8382945 to your computer and use it in GitHub Desktop.
Save digitalasia/8382945 to your computer and use it in GitHub Desktop.
this is a snippet of the full server.log https://gist.github.com/digitalasia/8382935
1a) FROM RUBY AMQP CLIENT
=====================
DEBUG:pika.channel:Called with <METHOD(['frame_type=1', 'channel_number=1', "method=<Basic.Deliver(['consumer_tag=ctag1.0', 'redelivered=False', 'routing_key=serverv3', 'delivery_tag=43', 'exchange=ToServerv3'])>"])>, <Header(['frame_type=2', 'channel_number=1', "properties=<BasicProperties(['delivery_mode=2', 'priority=0', 'content_type=application/octet-stream'])>", 'body_size=243'])>, '{\n "method": "login",\n "identity": {\n "name": "ytbryan",\n "password": "hahaha",\n "email": "ytbryanbunny@gmail.com",\n "device_id": "",\n "acct_status": ""\n },\n "contacts": [\n {\n "email": "ytbryan@gmail.com"\n }\n ]\n}'
INFO:root:Fri Jan 10 13:59:04 2014: [x] 'serverv3':'{\n "method": "login",\n "identity": {\n "name": "ytbryan",\n "password": "hahaha",\n "email": "ytbryanbunny@gmail.com",\n "device_id": "",\n "acct_status": ""\n },\n "contacts": [\n {\n "email": "ytbryan@gmail.com"\n }\n ]\n}'
1b) FROM IOS AMQP CLIENT
=====================
DEBUG:pika.channel:Called with <METHOD(['frame_type=1', 'channel_number=1', "method=<Basic.Deliver(['consumer_tag=ctag1.0', 'redelivered=False', 'routing_key=serverv3', 'delivery_tag=44', 'exchange=ToServerv3'])>"])>, <Header(['frame_type=2', 'channel_number=1', 'properties=<BasicProperties>', 'body_size=186'])>, '{"method": "login","identity": {"name": "ytbryan","password": "hahaha","email": "ytbryaniosdev@gmail.com","device_id": "","acct_status": ""},"contacts": [{"email": "ytbryan@gmail.com"}]}'
INFO:root:Fri Jan 10 13:59:36 2014: [x] 'serverv3':'{"method": "login","identity": {"name": "ytbryan","password": "hahaha","email": "ytbryaniosdev@gmail.com","device_id": "","acct_status": ""},"contacts": [{"email": "ytbryan@gmail.com"}]}'
INFO:root:Fri Jan 10 13:59:36 2014: Type of message is login
2a) FROM RUBY AMQP CLIENT
=====================
DEBUG:pika.callback:0 registered uses left
DEBUG:pika.callback:Removing callback #0: {'callback': <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814450>>, 'only': None, 'one_shot': True, 'arguments': None, 'calls': 0}
DEBUG:pika.callback:Calling <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814450>> for "1:Basic.Ack"
WARNING:pika.adapters.blocking_connection:Message was returned (312): NO_ROUTE
INFO:root:Fri Jan 10 13:59:04 2014: [x] Sent u'serverv3.ytbryanbunny@gmail.com':'{"status": {"status": "not_ok", "error_code": 4, "method": "login", "error_msg": "Username/email not found"}, "identity": {"acct_status": "", "contact_status": "", "id": -1, "device_id": "", "phone": -1, "country_code": -1, "password": "", "email": "ytbryanbunny@gmail.com", "name": "ytbryan"}, "contacts": []}'
DEBUG:pika.callback:Added: {'callback': <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814450>>, 'only': None, 'one_shot': True, 'arguments': None, 'calls': 1}
DEBUG:pika.callback:Processing 1:Queue.DeleteOk
DEBUG:pika.callback:Processing use of oneshot callback
DEBUG:pika.callback:0 registered uses left
2b) FROM IOS AMQP CLIENT
====================
DEBUG:pika.callback:Removing callback #0: {'callback': <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814810>>, 'only': None, 'one_shot': True, 'arguments': None, 'calls': 0}
DEBUG:pika.callback:Calling <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814810>> for "1:Basic.Ack"
WARNING:pika.adapters.blocking_connection:Message was returned (312): NO_ROUTE
INFO:root:Fri Jan 10 13:59:36 2014: [x] Sent u'serverv3.ytbryaniosdev@gmail.com':'{"status": {"status": "not_ok", "error_code": 4, "method": "login", "error_msg": "Username/email not found"}, "identity": {"acct_status": "", "contact_status": "", "id": -1, "device_id": "", "phone": -1, "country_code": -1, "password": "", "email": "ytbryaniosdev@gmail.com", "name": "ytbryan"}, "contacts": []}'
DEBUG:pika.callback:Added: {'callback': <bound method BlockingChannel._on_rpc_complete of <pika.adapters.blocking_connection.BlockingChannel object at 0x1814810>>, 'only': None, 'one_shot': True, 'arguments': None, 'calls': 1}
DEBUG:pika.callback:Processing 1:Queue.DeleteOk
DEBUG:pika.callback:Processing use of oneshot callback
DEBUG:pika.callback:0 registered uses left
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment