X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=a63546a390094a126cef8a832bbce1de602a8245;hb=efcd52e23097c5fa48a5c6eacd3e1f6edc0e8e32;hp=26ac71285a02197c08733057c5a495f53142dd09;hpb=583fe2d2582ab4078527c152b232ddf359336e91;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 26ac712..a63546a 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.68 2002-08-28 19:52:29 adam Exp $ +/* $Id: zebraapi.c,v 1.70 2002-09-06 10:28:02 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -130,9 +130,7 @@ ZebraService zebra_start (const char *configName) yaz_log (LOG_LOG, "zebra_start %s", configName); - if (!(res = res_open (configName, 0))) - yaz_log (LOG_WARN, "Cannot read resources `%s'", configName); - else + if ((res = res_open (configName, 0))) { ZebraService zh = xmalloc (sizeof(*zh)); @@ -961,7 +959,7 @@ void zebra_set_state (ZebraHandle zh, int val, int seqno) fname = zebra_mk_fname (res_get(zh->res, "lockDir"), state_fname); f = fopen (fname, "w"); - yaz_log (LOG_LOG, "%c %d %ld", val, seqno, p); + yaz_log (LOG_DEBUG, "%c %d %ld", val, seqno, p); fprintf (f, "%c %d %ld\n", val, seqno, p); fclose (f); xfree (fname);