On Nov 20, 2013, at 9:58 AM, Yunkai Zhang <[email protected]> wrote:

> I wonder it's a small patch, maybe needn't a ticket.
> 
> I'm pleasure to create one for it if necessary.

Yes please :)



> 
> 在 2013年11月21日星期四,James Peach 写道:
> 
>> What JIRA ticket is this?
>> 
>> On Nov 20, 2013, at 6:27 AM, [email protected] wrote:
>> 
>>> Updated Branches:
>>> refs/heads/master 938fa1ec2 -> ed8f6e9b0
>>> 
>>> 
>>> Add a new field: '%<chp>', "client_host_port" to LogFormat
>>> 
>>> Signed-off-by: Yunkai Zhang <[email protected]>
>>> 
>>> 
>>> Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
>>> Commit:
>> http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ed8f6e9b
>>> Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ed8f6e9b
>>> Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ed8f6e9b
>>> 
>>> Branch: refs/heads/master
>>> Commit: ed8f6e9b02170f311992dc5f00f9838b88ec7077
>>> Parents: 938fa1e
>>> Author: Yunkai Zhang <[email protected]>
>>> Authored: Wed Nov 20 17:45:08 2013 +0800
>>> Committer: Yunkai Zhang <[email protected]>
>>> Committed: Wed Nov 20 22:27:06 2013 +0800
>>> 
>>> ----------------------------------------------------------------------
>>> proxy/ICPConfig.cc             |  6 ++++++
>>> proxy/ICPlog.h                 |  1 +
>>> proxy/logging/Log.cc           |  7 +++++++
>>> proxy/logging/LogAccess.cc     |  9 +++++++++
>>> proxy/logging/LogAccess.h      |  1 +
>>> proxy/logging/LogAccessHttp.cc | 13 +++++++++++++
>>> proxy/logging/LogAccessHttp.h  |  1 +
>>> proxy/logging/LogAccessICP.cc  | 13 +++++++++++++
>>> proxy/logging/LogAccessICP.h   |  3 ++-
>>> 9 files changed, 53 insertions(+), 1 deletion(-)
>>> ----------------------------------------------------------------------
>>> 
>>> 
>>> 
>> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ed8f6e9b/proxy/ICPConfig.cc
>>> ----------------------------------------------------------------------
>>> diff --git a/proxy/ICPConfig.cc b/proxy/ICPConfig.cc
>>> index 01523f2..3e19557 100644
>>> --- a/proxy/ICPConfig.cc
>>> +++ b/proxy/ICPConfig.cc
>>> @@ -1301,6 +1301,12 @@ ICPlog::GetClientIP()
>>>  return &_s->_sender.sa;
>>> }
>>> 
>>> +in_port_t
>>> +ICPlog::GetClientPort()
>>> +{
>>> +  return _s->_sender.port();
>>> +}
>>> +
>>> SquidLogCode ICPlog::GetAction()
>>> {
>>>  if (_s->_queryResult == CACHE_EVENT_LOOKUP)
>>> 
>>> 
>> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ed8f6e9b/proxy/ICPlog.h
>>> ----------------------------------------------------------------------
>>> diff --git a/proxy/ICPlog.h b/proxy/ICPlog.h
>>> index a5e01d9..f7f37e9 100644
>>> --- a/proxy/ICPlog.h
>>> +++ b/proxy/ICPlog.h
>>> @@ -52,6 +52,7 @@ public:
>>>  }
>>>  ink_hrtime GetElapsedTime();
>>>  sockaddr const* GetClientIP();
>>> +  in_port_t GetClientPort();
>>>  SquidLogCode GetAction();
>>>  const char *GetCode();
>>>  int GetSize();
>>> 
>>> 
>> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ed8f6e9b/proxy/logging/Log.cc
>>> ----------------------------------------------------------------------
>>> diff --git a/proxy/logging/Log.cc b/proxy/logging/Log.cc
>>> index 546f83f..6a64ce7 100644
>>> --- a/proxy/logging/Log.cc
>>> +++ b/proxy/logging/Log.cc
>>> @@ -346,6 +346,13 @@ Log::init_fields()
>>>  global_field_l
> 
> 
> 
> -- 
> Yunkai Zhang
> Work at Taobao

Reply via email to