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:
e661675
)
Log up to 1K of buffer content if decoding fails
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 23 Jan 2012 11:49:38 +0000
(12:49 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 23 Jan 2012 11:49:38 +0000
(12:49 +0100)
src/yaz-z-assoc.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-z-assoc.cpp
b/src/yaz-z-assoc.cpp
index
6048465
..
e268248
100644
(file)
--- a/
src/yaz-z-assoc.cpp
+++ b/
src/yaz-z-assoc.cpp
@@
-223,8
+223,8
@@
Z_GDU *Z_Assoc::decode_GDU(const char *buf, int len)
if (len > 0)
{
WRBUF w = wrbuf_alloc();
- wrbuf_write_escaped(w, buf, len > 20 ? 20 : len);
- yaz_log(YLOG_LOG, "Buffer content: %s", wrbuf_cstr(w));
+ wrbuf_write_escaped(w, buf, len > 1024 ? 1024 : len);
+ yaz_log(YLOG_LOG, "Buffer bytes: %s", wrbuf_cstr(w));
wrbuf_destroy(w);
}
yaz_log(YLOG_LOG, "PDU dump:");