Set Crossbar.io to log raw WAMP messages

#1

Before moving to Crossbar, I was able to pass debugWamp=True to the WampServerFactory and get a log of WAMP messages in/out of server. I’m having trouble figuring out if I can get that same functionality out of Crossbar. Passing --debug at the command line didn’t seem to add any output beyond what was already there, and looking at the config.json documentation, I see that while the WAMP Long Poll transport appears to have its own debug option, the WebSocket transport doesn’t. Is there a way to regain this level of raw output while still using Crossbar?

0 Likes

#2

Before moving to Crossbar, I was able to pass debugWamp=True to the
WampServerFactory and get a log of WAMP messages in/out of server. I'm
having trouble figuring out if I can get that same functionality out of
Crossbar. Passing --debug at the command line didn't seem to add any
output beyond what was already there, and looking at the config.json
documentation, I see that while the WAMP Long Poll transport appears to
have its own debug option, the WebSocket transport doesn't. Is there a
way to regain this level of raw output while still using Crossbar?

Hi Jayson,

for now, you can set

"debug": true

on the WebSocket transport, like

          "transports": [
             {
                "type": "web",
                "endpoint": {
                   "type": "tcp",
                   "port": 8080
                },
                "paths": {
                   "/": {
                      "type": "static",
                      "directory": "../hello/web"
                   },
                   "ws": {
                      "type": "websocket",
                      "debug": true
                   }
                }
             }
          ]

It'll produce tons of log output including WAMP messages.

This is undocumented currently since it likely will change. We need to define a sane and systematic way of setting "debug on" for different subsystems of Crossbar and for different amounts of detail.

Cheers,
/Tobias

···

Am 11.08.2014 20:27, schrieb Jayson Clifford:

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
To post to this group, send email to autob...@googlegroups.com
<mailto:autob...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/fe990c45-96e5-4021-a14f-0b5800791675%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/fe990c45-96e5-4021-a14f-0b5800791675%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes