projects
/
yaz-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:
b51db7b
)
More diagnostics in log.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2002 21:03:36 +0000
(21:03 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Jan 2002 21:03:36 +0000
(21:03 +0000)
server/seshigh.c
patch
|
blob
|
history
diff --git
a/server/seshigh.c
b/server/seshigh.c
index
3351c0e
..
5806a15
100644
(file)
--- a/
server/seshigh.c
+++ b/
server/seshigh.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2001, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2001, Index Data
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.122 2001-11-22 09:45:03 adam Exp $
+ * $Id: seshigh.c,v 1.123 2002-01-17 21:03:36 adam Exp $
*/
/*
*/
/*
@@
-758,8
+758,8
@@
static Z_Records *diagrec(association *assoc, int error, char *addinfo)
Z_DefaultDiagFormat *dr = (Z_DefaultDiagFormat *)
odr_malloc (assoc->encode, sizeof(*dr));
Z_DefaultDiagFormat *dr = (Z_DefaultDiagFormat *)
odr_malloc (assoc->encode, sizeof(*dr));
- yaz_log(LOG_DEBUG, "Diagnostic: %d -- %s", error, addinfo ? addinfo :
- "NULL");
+ yaz_log(LOG_LOG, "[%d] %s %s%s", error, diagbib1_str(error),
+ addinfo ? " -- " : "", addinfo ? addinfo : "", error);
rec->which = Z_Records_NSD;
rec->u.nonSurrogateDiagnostic = dr;
dr->diagnosticSetId =
rec->which = Z_Records_NSD;
rec->u.nonSurrogateDiagnostic = dr;
dr->diagnosticSetId =
@@
-886,7
+886,15
@@
static Z_Records *pack_records(association *a, char *setname, int start,
{
if (!freq.surrogate_flag)
{
{
if (!freq.surrogate_flag)
{
+ char s[20];
*pres = Z_PRES_FAILURE;
*pres = Z_PRES_FAILURE;
+ /* for 'present request out of range',
+ set addinfo to record position if not set */
+ if (freq.errcode == 13 && freq.errstring == 0)
+ {
+ sprintf (s, "%d", recno);
+ freq.errstring = s;
+ }
return diagrec(a, freq.errcode, freq.errstring);
}
reclist->records[reclist->num_records] =
return diagrec(a, freq.errcode, freq.errstring);
}
reclist->records[reclist->num_records] =