From: Adam Dickmeiss Date: Tue, 20 May 2003 20:22:11 +0000 (+0000) Subject: Show ODR error addinfo X-Git-Tag: YAZ.2.0.2.RH.2~11 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=eeb13f1ab726d5437a76bcc92927d7d756949821;p=yaz-moved-to-github.git Show ODR error addinfo --- diff --git a/server/seshigh.c b/server/seshigh.c index 601ff57..634bc4e 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.156 2003-05-20 08:22:33 adam Exp $ + * $Id: seshigh.c,v 1.157 2003-05-20 20:22:11 adam Exp $ */ /* @@ -326,8 +326,10 @@ void ir_session(IOCHAN h, int event) odr_setbuf(assoc->decode, assoc->input_buffer, res, 0); if (!z_GDU(assoc->decode, &req->gdu_request, 0, 0)) { - yaz_log(LOG_LOG, "ODR error on incoming PDU: %s [near byte %d] ", + yaz_log(LOG_LOG, "ODR error on incoming PDU: %s [addinfo %s] " + "[near byte %d] ", odr_errmsg(odr_geterror(assoc->decode)), + odr_getaddinfo(assoc->decode), odr_offset(assoc->decode)); if (assoc->decode->error != OHTTP) { @@ -1381,8 +1383,9 @@ static int process_gdu_response(association *assoc, request *req, Z_GDU *res) } if (!z_GDU(assoc->encode, &res, 0, 0)) { - yaz_log(LOG_WARN, "ODR error when encoding response: %s", - odr_errmsg(odr_geterror(assoc->decode))); + yaz_log(LOG_WARN, "ODR error when decoding PDU: %s [addinfo %s]", + odr_errmsg(odr_geterror(assoc->decode)), + odr_getaddinfo(assoc->decode)); return -1; } req->response = odr_getbuf(assoc->encode, &req->len_response,