On 07/16/2010 05:26 PM, Jason Wieland wrote:
On Thu, Jul 15, 2010 at 6:18 PM, Leif Hedstrom <[email protected]
<mailto:[email protected]>> wrote:
On 07/15/2010 06:31 PM, Jason Wieland wrote:
Hello group, I'm running an up to date (Revision: 964088) of
ATS on 64bit ubuntu using the official ec2 images as a forward
proxy.
I'm now attempting to write a plugin that will inject a line
of html into the body of the response content for every
request the proxy serves. ATS is supplied with a bunch of
example plugins that give me a great starting point but I'm
having a couple problems.
1. I can't seem to get the ' INKDebug("debug-hello", "Hello
World!\n");' as log by the hello.so plugin into either stdout
or into syslog. I added the following options to
records.config, but still no log messages
You'd want to trace with "debug-hello", e.g. using traffic_server
from command line, run it with -T "debug-hello". That would
produce those on STDOUT. If enabling diagnostics via
records.config, and starting the normal way, I believe the output
should end up in traffic.out. E.g.
CONFIG proxy.config.diags.debug.enabled INT 1
CONFIG proxy.config.diags.debug.tags STRING debug-hello
Got this working with -T 'tag' but not with the CONFIG params.
Weird, worked for me. I tried with the "default" settings:
CONFIG proxy.config.diags.debug.enabled INT 1
CONFIG proxy.config.diags.debug.tags STRING http.*|dns.*
Then I did "trafficserver start", and
r...@loki 543/0 # tail var/log/trafficserver/traffic.out
[Jul 18 15:40:46.952] Server {47879922951952} DEBUG: (http_tunnel) [4]
consumer_handler [user agent VC_EVENT_WRITE_COMPLETE]
[Jul 18 15:40:46.952] Server {47879922951952} DEBUG: (http) [4]
[&HttpSM::tunnel_handler_ua, VC_EVENT_WRITE_COMPLETE]
[Jul 18 15:40:46.952] Server {47879922951952} DEBUG: (http_cs) [4]
session closed
[Jul 18 15:40:46.952] Server {47879922951952} DEBUG: (http_cs) [4]
session destroy
[Jul 18 15:40:46.952] Server {47879922951952} DEBUG: (http_ss) [4]
session closed
-- Leif