From 359ef84c4399cc9f3e5589d4dddb225b2ff46d8b Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 27 Aug 2006 13:28:34 +0000 Subject: [PATCH] changed some logging git-svn-id: svn://svn.open-ils.org/ILS/trunk@5721 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/src/libstack/osrf_message.c | 2 +- OpenSRF/src/utils/socket_bundle.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenSRF/src/libstack/osrf_message.c b/OpenSRF/src/libstack/osrf_message.c index 51a9119ea9..beb52d0299 100644 --- a/OpenSRF/src/libstack/osrf_message.c +++ b/OpenSRF/src/libstack/osrf_message.c @@ -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); diff --git a/OpenSRF/src/utils/socket_bundle.c b/OpenSRF/src/utils/socket_bundle.c index fc0f13a6b5..73cecb425c 100644 --- a/OpenSRF/src/utils/socket_bundle.c +++ b/OpenSRF/src/utils/socket_bundle.c @@ -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; } } -- 2.43.2