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:
cc1a58f
)
yaz_url_exec: minor adjustments to log msgs
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 25 Apr 2012 14:06:49 +0000
(16:06 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 25 Apr 2012 14:06:49 +0000
(16:06 +0200)
src/url.c
patch
|
blob
|
history
diff --git
a/src/url.c
b/src/url.c
index
4fa8742
..
6b0ef52
100644
(file)
--- a/
src/url.c
+++ b/
src/url.c
@@
-86,11
+86,11
@@
Z_HTTP_Response *yaz_url_exec(yaz_url_t p, const char *uri,
conn = cs_create_host_proxy(uri, 1, &add, p->proxy);
if (!conn)
{
conn = cs_create_host_proxy(uri, 1, &add, p->proxy);
if (!conn)
{
- yaz_log(YLOG_WARN, "Bad address for URL:%s", uri);
+ yaz_log(YLOG_WARN, "Could not resolve URL: %s", uri);
}
else if (cs_connect(conn, add) < 0)
{
}
else if (cs_connect(conn, add) < 0)
{
- yaz_log(YLOG_WARN, "Can not connect to URL:%s", uri);
+ yaz_log(YLOG_WARN, "Can not connect to URL: %s", uri);
}
else
{
}
else
{
@@
-98,7
+98,7
@@
Z_HTTP_Response *yaz_url_exec(yaz_url_t p, const char *uri,
char *buf = odr_getbuf(p->odr_out, &len, 0);
if (cs_put(conn, buf, len) < 0)
char *buf = odr_getbuf(p->odr_out, &len, 0);
if (cs_put(conn, buf, len) < 0)
- yaz_log(YLOG_WARN, "cs_put failed URL:%s", uri);
+ yaz_log(YLOG_WARN, "cs_put failed URL: %s", uri);
else
{
char *netbuffer = 0;
else
{
char *netbuffer = 0;
@@
-106,7
+106,7
@@
Z_HTTP_Response *yaz_url_exec(yaz_url_t p, const char *uri,
int cs_res = cs_get(conn, &netbuffer, &netlen);
if (cs_res <= 0)
{
int cs_res = cs_get(conn, &netbuffer, &netlen);
if (cs_res <= 0)
{
- yaz_log(YLOG_WARN, "cs_get failed URL:%s", uri);
+ yaz_log(YLOG_WARN, "cs_get failed URL: %s", uri);
}
else
{
}
else
{