From 555f5587646a2c9e6072427f0ebe53ffab202a38 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/OpenSRF/trunk@766 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_message.c | 2 +- src/utils/socket_bundle.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libstack/osrf_message.c b/src/libstack/osrf_message.c index 51a9119..beb52d0 100644 --- a/src/libstack/osrf_message.c +++ b/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/src/utils/socket_bundle.c b/src/utils/socket_bundle.c index fc0f13a..73cecb4 100644 --- a/src/utils/socket_bundle.c +++ b/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