From d4719a5801a91a1596e8e02bd91986bcba1405a4 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 15 Dec 2008 19:18:05 +0000 Subject: [PATCH] fixing debugging message so that it is useful for debugging git-svn-id: svn://svn.open-ils.org/ILS/trunk@11580 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index 978766f703..80f6c916c2 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -232,7 +232,6 @@ int osrfAppInitialize() { } buffer_fadd(method_name, ".%s", method_type); - char* method = buffer_release(method_name); free(_fm); @@ -240,7 +239,7 @@ int osrfAppInitialize() { osrfHashSet( method_meta, strdup(method_type), "methodtype" ); int flags = 0; - if (!(strcmp( method_type, "search" )) || !(strcmp( method_type, "id_list" ))) { + if (*method_type == 'i' || *method_type == 's') { flags = flags | OSRF_METHOD_STREAMING; } @@ -2038,7 +2037,7 @@ static char* searchWHERE ( const jsonObject* search_hash, osrfHash* meta, int op osrfLogDebug( OSRF_LOG_MARK, - "Entering searchWHERE; search_hash addr = %d, meta addr = %d, opjoin_type = %d, ctx addr = %d", + "%s: Entering searchWHERE; search_hash addr = %d, meta addr = %d, opjoin_type = %d, ctx addr = %d", MODULENAME, search_hash, meta, -- 2.43.2