white space :) added some log lines
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Mar 2006 22:47:05 +0000 (22:47 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Mar 2006 22:47:05 +0000 (22:47 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@661 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_cache.c

index 7936ca0..13cb272 100644 (file)
@@ -60,6 +60,7 @@ jsonObject* osrfCacheGetObject( char* key, ... ) {
                        obj = jsonParseString( data );
                        return obj;
                }
+               osrfLogWarning(OSRF_LOG_MARK, "No cache data exists with key %s", VA_BUF);
        }
        return NULL;
 }
@@ -69,6 +70,7 @@ char* osrfCacheGetString( char* key, ... ) {
                VA_LIST_TO_STRING(key);
                char* data = (char*) mc_aget(__osrfCache, VA_BUF, strlen(VA_BUF) );
                osrfLogInternal( OSRF_LOG_MARK, "osrfCacheGetObject(): Returning object: %s", data);
+               if(!data) osrfLogWarning(OSRF_LOG_MARK, "No cache data exists with key %s", VA_BUF);
                return data;
        }
        return NULL;