Make all logging in session use session_log
authorDennis Schafroth <dennis@indexdata.com>
Fri, 25 May 2012 11:53:55 +0000 (13:53 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 25 May 2012 11:53:55 +0000 (13:53 +0200)
src/session.c

index 17aa3b7..64920da 100644 (file)
@@ -637,12 +637,12 @@ void session_sort(struct session *se, const char *field, int increasing)
     }
     if (sr)
     {
-        yaz_log(YLOG_LOG, "search_sort: field=%s increasing=%d already fetched",
+        session_log(se, YLOG_DEBUG, "search_sort: field=%s increasing=%d already fetched",
                 field, increasing);
         session_leave(se);
         return;
     }
-    yaz_log(YLOG_LOG, "search_sort: field=%s increasing=%d must fetch",
+    session_log(se, YLOG_DEBUG, "search_sort: field=%s increasing=%d must fetch",
             field, increasing);
     sr = nmem_malloc(se->nmem, sizeof(*sr));
     sr->field = nmem_strdup(se->nmem, field);
@@ -780,7 +780,7 @@ enum pazpar2_error_code session_search(struct session *se,
         else
             return PAZPAR2_NO_TARGETS;
     }
-    yaz_log(YLOG_LOG, "session_start_search done");
+    session_log(se, YLOG_LOG, "session_start_search done");
     return PAZPAR2_NO_ERROR;
 }