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);
// 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;
}
}