/*
- * Copyright (c) 1995-2002, Index Data
+ * Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.131 2002-07-25 12:52:54 adam Exp $
+ * $Id: seshigh.c,v 1.133 2003-01-06 08:20:28 adam Exp $
*/
/*
strcpy(filename, control_block->apdufile);
if (!(anew->print = odr_createmem(ODR_PRINT)))
return 0;
- if (*control_block->apdufile != '-')
+ if (*control_block->apdufile == '@')
+ {
+ odr_setprint(anew->print, yaz_log_file());
+ }
+ else if (*control_block->apdufile != '-')
{
strcpy(filename, control_block->apdufile);
if (!control_block->dynamic)
for (i = 0; i < req->num_databaseNames; i++)
yaz_log (LOG_LOG, "Database '%s'", req->databaseNames[i]);
}
- switch (req->query->which)
- {
- case Z_Query_type_1: case Z_Query_type_101:
- log_rpn_query (req->query->u.type_1);
- }
+ yaz_log_zquery(req->query);
+
if (assoc->init->bend_search)
{
bsrr->setname = req->resultSetName;
int r;
r = process_request (a, req, &msg);
if (r < 0)
- logf (LOG_WARN, "%s", msg);
+ yaz_log (LOG_WARN, "%s", msg);
return r;
}