From: Dennis Schafroth Date: Fri, 25 May 2012 11:53:55 +0000 (+0200) Subject: Make all logging in session use session_log X-Git-Tag: v1.6.14~17 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=bed60313a0ad69f2dc66ea48d7855bdafb293936;p=pazpar2-moved-to-github.git Make all logging in session use session_log --- diff --git a/src/session.c b/src/session.c index 17aa3b7..64920da 100644 --- a/src/session.c +++ b/src/session.c @@ -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; }