projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
101bde0
)
Fix log of incoming PDU from client
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Mar 2004 10:49:22 +0000
(10:49 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Mar 2004 10:49:22 +0000
(10:49 +0000)
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
893cc5d
..
e7783f9
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.cpp,v 1.109 2004-03-15 22:49:13 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.110 2004-03-17 10:49:22 adam Exp $
*/
#include <unistd.h>
*/
#include <unistd.h>
@@
-639,7
+639,9
@@
void Yaz_Proxy::convert_xsl_delay()
Z_External *r = npr->u.databaseRecord;
if (r->which == Z_External_octet)
{
Z_External *r = npr->u.databaseRecord;
if (r->which == Z_External_octet)
{
+#if 0
fwrite((char*) r->u.octet_aligned->buf, 1, r->u.octet_aligned->len, stdout);
fwrite((char*) r->u.octet_aligned->buf, 1, r->u.octet_aligned->len, stdout);
+#endif
xmlDocPtr res, doc = xmlParseMemory(
(char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len);
xmlDocPtr res, doc = xmlParseMemory(
(char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len);
@@
-1368,8
+1370,8
@@
void Yaz_Proxy::recv_GDU(Z_GDU *apdu, int len)
m_bytes_recv += len;
m_bytes_recv += len;
- if (m_log_mask & PROXY_LOG_APDU_CLIENT)
- yaz_log (LOG_DEBUG, "%sReceiving %s from client %d bytes",
+ if (m_log_mask & PROXY_LOG_REQ_CLIENT)
+ yaz_log (LOG_LOG, "%sReceiving %s from client %d bytes",
m_session_str, gdu_name(apdu), len);
if (m_bw_hold_PDU) // double incoming PDU. shutdown now.
m_session_str, gdu_name(apdu), len);
if (m_bw_hold_PDU) // double incoming PDU. shutdown now.