Hi,

It's struck me that since it's not documented anywhere overtly, and even if it
was, it would be easy to overlook, that the vast majority of people won't be
aware of this trick:

Axon.Box.ShowAllTransits = True

As being the last thing you do before .run() will show you _everything_ that's
being passed through the system. If you want something more granular - ie a
particular linkage, then you can do this:

link = self.link( .... )
link.setShowTransit(True, "this link")

etc.

To show what sort of thing you get from Axon.Box.ShowAllTransits = True , the
output from the breaking example is copied below my .sig

"Discarding Delivery" means that data was sent to an unlinked outbox. (in
the example trace below data gets thrown to a "debug" outbox as well)

Regards,


Michael.
 -- 
http://yeoldeclue.com/blog
http://twitter.com/kamaelian
http://www.kamaelia.org/Home

Delivery via [ None ] of  <Kamaelia.IPC.newReader object at 0xb7bc4c4c>
Delivery via [ None ] of  <socket._socketobject object at 0xb7bbbb1c>
Delivery via [ None ] of  <Kamaelia.IPC.newReader object at 0xb7bc60cc>
Delivery via [ None ] of  <Kamaelia.IPC.newCSA object at 0xb7bc694c>
Delivery via [ None ] of  <Kamaelia.IPC.newReader object at 0xb7bc69ac>
Delivery via [ None ] of  <Kamaelia.IPC.newWriter object at 0xb7bc6a2c>
Delivery via [ None ] of  'GET / HTTP/1.1\r\nHost: 
127.0.0.1:8082\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; 
rv:1.8.1.16) Gecko/20080716 SUSE/2.0.0.16-0.1 Firefox/2.0.0.16\r\nAccept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
 en-gb,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: 
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nConnection: 
keep-alive\r\n\r\n'
Delivery via [ None ] of  <Kamaelia.IPC.newReader object at 0xb7bce4ac>
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 0'
Discarding Delivery via [ None ] of  'HTTPParser::main - awaiting initial line'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 1'
Discarding Delivery via [ None ] of  'Fetched line: GET / HTTP/1.1'
Discarding Delivery via [ None ] of  'HTTPParser::main - initial line found'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2  - Get Headers'
Discarding Delivery via [ None ] of  'Fetched line: Host: 127.0.0.1:8082'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: User-Agent: Mozilla/5.0 
(X11; U; Linux i686; en-GB; rv:1.8.1.16) Gecko/20080716 SUSE/2.0.0.16-0.1 
Firefox/2.0.0.16'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Accept-Language: 
en-gb,en;q=0.5'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Accept-Encoding: 
gzip,deflate'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Accept-Charset: 
ISO-8859-1,utf-8;q=0.7,*;q=0.7'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Keep-Alive: 300'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: Connection: keep-alive'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'Fetched line: '
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2.1'
Discarding Delivery via [ None ] of  'HTTPParser::main - stage 2 complete - Got 
Headers'
Delivery via [ None ] of  <Kamaelia.Protocol.HTTP.HTTPParser.ParsedHTTPHeader 
object at 0xb7bce90c>
Discarding Delivery via [ None ] of  'HTTPParser::main - request sent on\n'
Delivery via [ None ] of  <Kamaelia.Protocol.HTTP.HTTPParser.ParsedHTTPEnd 
object at 0xb7bce7cc>
Discarding Delivery via [ None ] of  'HTTPParser connection close\n'
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bce94c>
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bce94c>
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bcedac>
Delivery via [ None ] of  {'headers': [('content-type', 'text/plain')], 'data': 
"{'bad': False,\n 'body': '',\n 'headers': {'accept': 
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',\n
             'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',\n             
'accept-encoding': 'gzip,deflate',\n             'accept-language': 
'en-gb,en;q=0.5',\n             'connection': 'keep-alive',\n             
'host': '127.0.0.1:8082',\n             'keep-alive': '300',\n             
'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.16) 
Gecko/20080716 SUSE/2.0.0.16-0.1 Firefox/2.0.0.16'},\n 'localip': 
'127.0.0.1',\n 'localport': 8082,\n 'method': 'GET',\n 'non-query-uri': '/',\n 
'peer': '127.0.0.1',\n 'peerport': 44210,\n 'protocol': 'HTTP',\n 'query': 
'',\n 'raw-uri': '/',\n 'uri-prefix-trigger': '/',\n 'uri-protocol': '',\n 
'uri-server': '127.0.0.1:8082',\n 'uri-suffix': '',\n 'version': '1.1'}", 
'statuscode': '200'}
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bce30c>
Delivery via [ None ] of  'HTTP/1.0 200 OK\r\nServer: Kamaelia HTTP Server 
(RJL) 0.4\r\nDate: Thu, 15 Jan 2009 11:10:46 GMT\r\nConnection: 
close\r\ncontent-type: text/plain\r\n\r\n'
Delivery via [ None ] of  "{'bad': False,\n 'body': '',\n 'headers': {'accept': 
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',\n
             'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',\n             
'accept-encoding': 'gzip,deflate',\n             'accept-language': 
'en-gb,en;q=0.5',\n             'connection': 'keep-alive',\n             
'host': '127.0.0.1:8082',\n             'keep-alive': '300',\n             
'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.16) 
Gecko/20080716 SUSE/2.0.0.16-0.1 Firefox/2.0.0.16'},\n 'localip': 
'127.0.0.1',\n 'localport': 8082,\n 'method': 'GET',\n 'non-query-uri': '/',\n 
'peer': '127.0.0.1',\n 'peerport': 44210,\n 'protocol': 'HTTP',\n 'query': 
'',\n 'raw-uri': '/',\n 'uri-prefix-trigger': '/',\n 'uri-protocol': '',\n 
'uri-server': '127.0.0.1:8082',\n 'uri-suffix': '',\n 'version': '1.1'}"
Discarding Delivery via [ None ] of  '_handlercontrol received 
<Axon.Ipc.producerFinished object at 0xb7bce30c>'
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bce8cc>
Discarding Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 
0xb7bce94c>
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bce94c>
Delivery via [ None ] of  <Axon.Ipc.producerFinished object at 0xb7bced2c>
Delivery via [ None ] of  <Kamaelia.IPC.socketShutdown object at 0xb7bce94c>
Discarding Delivery via [ None ] of  <Kamaelia.IPC.shutdownCSA object at 
0xb7bce42c>
Delivery via [ None ] of  <Kamaelia.IPC.socketShutdown object at 0xb7bcae0c>
Discarding Delivery via [ None ] of  <Kamaelia.IPC.shutdownCSA object at 
0xb7bce42c>
Delivery via [ None ] of  <Kamaelia.IPC.removeReader object at 0xb7bce42c>
Delivery via [ None ] of  <Kamaelia.IPC.removeWriter object at 0xb7bce46c>
Delivery via [ None ] of  <Kamaelia.IPC.removeReader object at 0xb7bce44c>
Delivery via [ None ] of  <Kamaelia.IPC.removeWriter object at 0xb7bce48c>
Delivery via [ None ] of  <Kamaelia.IPC.shutdownCSA object at 0xb7bce28c>
Delivery via [ None ] of  <Kamaelia.IPC.removeReader object at 0xb7bc6a8c>
Delivery via [ None ] of  <Kamaelia.IPC.removeWriter object at 0xb7bc6aec>
Delivery via [ None ] of  <Kamaelia.IPC.shutdownCSA object at 0xb7bce94c>
Delivery via [ None ] of  <Kamaelia.IPC.socketShutdown object at 0xb7bc694c>
Delivery via [ None ] of  <Axon.Ipc.shutdownMicroprocess object at 0xb7bcae0c>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"kamaelia" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/kamaelia?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to