-/* $Id: yaz-proxy.cpp,v 1.55 2006-04-13 00:02:24 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.56 2006-04-13 00:41:11 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
char session_str[200];
const char *peername = the_PDU_Observable->getpeername();
if (m_log_mask & PROXY_LOG_IP_CLIENT)
- sprintf(session_str, "%ld:%d %.80s 0 ",
- (long) time(0), m_session_no, peername);
+ sprintf(session_str, "%ld:%d %.80s %d ",
+ (long) time(0), m_session_no, peername, 0);
else
- sprintf(session_str, "%ld:%d 0 ",
- (long) time(0), m_session_no);
- m_session_no++;
+ sprintf(session_str, "%ld:%d %d ",
+ (long) time(0), m_session_no, 0);
yaz_log (YLOG_LOG, "%sNew session %s", session_str, peername);
yaz_log(YLOG_LOG, "%sHTTP Forwarded from %s", m_session_str,
m_peername);
if (m_log_mask & PROXY_LOG_IP_CLIENT)
- sprintf(m_session_str, "%ld:%d %.80s 0 ",
- (long) time(0), m_session_no, m_peername);
+ sprintf(m_session_str, "%ld:%d %.80s %d ",
+ (long) time(0), m_session_no, m_peername, m_request_no);
else
- sprintf(m_session_str, "%ld:%d 0 ",
- (long) time(0), m_session_no);
+ sprintf(m_session_str, "%ld:%d %d ",
+ (long) time(0), m_session_no, m_request_no);
}
}
}
assert(m_ref_count > 0);
if (main_ptr)
{
+ yaz_log(YLOG_LOG, "%sdec_ref", m_session_str);
if (m_main_ptr_dec)
return false;
m_main_ptr_dec = true;