yaz_url_exec: minor adjustments to log msgs
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Apr 2012 14:06:49 +0000 (16:06 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Apr 2012 14:06:49 +0000 (16:06 +0200)
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)
         {
-            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)
         {
-            yaz_log(YLOG_WARN, "Can not connect to URL:%s", uri);
+            yaz_log(YLOG_WARN, "Can not connect to URL: %s", uri);
         }
         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)
-                yaz_log(YLOG_WARN, "cs_put failed URL:%s", uri);
+                yaz_log(YLOG_WARN, "cs_put failed URL: %s", uri);
             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)
                 {
-                    yaz_log(YLOG_WARN, "cs_get failed URL:%s", uri);
+                    yaz_log(YLOG_WARN, "cs_get failed URL: %s", uri);
                 }
                 else
                 {