changed some logging
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Aug 2006 13:28:34 +0000 (13:28 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Aug 2006 13:28:34 +0000 (13:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5721 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/libstack/osrf_message.c
OpenSRF/src/utils/socket_bundle.c

index 51a9119..beb52d0 100644 (file)
@@ -34,7 +34,7 @@ void osrf_message_set_params( osrf_message* msg, jsonObject* o ) {
        if(!msg || !o) return;
 
        if(o->type != JSON_ARRAY) {
-               osrfLogWarning( OSRF_LOG_MARK, "passing non-array to osrf_message_set_params(), fixing...");
+               osrfLogDebug( OSRF_LOG_MARK, "passing non-array to osrf_message_set_params(), fixing...");
                jsonObject* clone = jsonObjectClone(o);
                o = jsonNewObject(NULL);
                jsonObjectPush(o, clone);
index fc0f13a..73cecb4 100644 (file)
@@ -455,16 +455,14 @@ int socket_wait(socket_manager* mgr, int timeout, int sock_fd) {
 
                // If timeout is -1, we block indefinitely
                if( (retval = select( sock_fd + 1, &read_set, NULL, NULL, NULL)) == -1 ) {
-                       osrfLogWarning( OSRF_LOG_MARK, "Sys Error: %s", strerror(errno));
-                       osrfLogWarning( OSRF_LOG_MARK, "Call to select interrupted");
+                       osrfLogWarning( OSRF_LOG_MARK, "Call to select() interrupted: Sys Error: %s", strerror(errno));
                        return -1;
                }
 
        } else if( timeout > 0 ) { /* timeout of 0 means don't block */
 
                if( (retval = select( sock_fd + 1, &read_set, NULL, NULL, &tv)) == -1 ) {
-                       osrfLogWarning( OSRF_LOG_MARK, "Sys Error: %s", strerror(errno));
-                       osrfLogWarning( OSRF_LOG_MARK,  "Call to select interrupted" );
+                       osrfLogWarning( OSRF_LOG_MARK, "Call to select() interrupted: Sys Error: %s", strerror(errno));
                        return -1;
                }
        }